|
|
@ -566,49 +566,6 @@ void update_fulfill_htlc__free_unpacked |
|
|
|
assert(message->base.descriptor == &update_fulfill_htlc__descriptor); |
|
|
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); |
|
|
|
} |
|
|
|
void update_timedout_htlc__init |
|
|
|
(UpdateTimedoutHtlc *message) |
|
|
|
{ |
|
|
|
static UpdateTimedoutHtlc init_value = UPDATE_TIMEDOUT_HTLC__INIT; |
|
|
|
*message = init_value; |
|
|
|
} |
|
|
|
size_t update_timedout_htlc__get_packed_size |
|
|
|
(const UpdateTimedoutHtlc *message) |
|
|
|
{ |
|
|
|
assert(message->base.descriptor == &update_timedout_htlc__descriptor); |
|
|
|
return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); |
|
|
|
} |
|
|
|
size_t update_timedout_htlc__pack |
|
|
|
(const UpdateTimedoutHtlc *message, |
|
|
|
uint8_t *out) |
|
|
|
{ |
|
|
|
assert(message->base.descriptor == &update_timedout_htlc__descriptor); |
|
|
|
return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); |
|
|
|
} |
|
|
|
size_t update_timedout_htlc__pack_to_buffer |
|
|
|
(const UpdateTimedoutHtlc *message, |
|
|
|
ProtobufCBuffer *buffer) |
|
|
|
{ |
|
|
|
assert(message->base.descriptor == &update_timedout_htlc__descriptor); |
|
|
|
return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); |
|
|
|
} |
|
|
|
UpdateTimedoutHtlc * |
|
|
|
update_timedout_htlc__unpack |
|
|
|
(ProtobufCAllocator *allocator, |
|
|
|
size_t len, |
|
|
|
const uint8_t *data) |
|
|
|
{ |
|
|
|
return (UpdateTimedoutHtlc *) |
|
|
|
protobuf_c_message_unpack (&update_timedout_htlc__descriptor, |
|
|
|
allocator, len, data); |
|
|
|
} |
|
|
|
void update_timedout_htlc__free_unpacked |
|
|
|
(UpdateTimedoutHtlc *message, |
|
|
|
ProtobufCAllocator *allocator) |
|
|
|
{ |
|
|
|
assert(message->base.descriptor == &update_timedout_htlc__descriptor); |
|
|
|
protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); |
|
|
|
} |
|
|
|
void update_fail_htlc__init |
|
|
|
(UpdateFailHtlc *message) |
|
|
|
{ |
|
|
@ -1872,57 +1829,6 @@ const ProtobufCMessageDescriptor update_fulfill_htlc__descriptor = |
|
|
|
(ProtobufCMessageInit) update_fulfill_htlc__init, |
|
|
|
NULL,NULL,NULL /* reserved[123] */ |
|
|
|
}; |
|
|
|
static const ProtobufCFieldDescriptor update_timedout_htlc__field_descriptors[2] = |
|
|
|
{ |
|
|
|
{ |
|
|
|
"revocation_hash", |
|
|
|
1, |
|
|
|
PROTOBUF_C_LABEL_REQUIRED, |
|
|
|
PROTOBUF_C_TYPE_MESSAGE, |
|
|
|
0, /* quantifier_offset */ |
|
|
|
offsetof(UpdateTimedoutHtlc, revocation_hash), |
|
|
|
&sha256_hash__descriptor, |
|
|
|
NULL, |
|
|
|
0, /* flags */ |
|
|
|
0,NULL,NULL /* reserved1,reserved2, etc */ |
|
|
|
}, |
|
|
|
{ |
|
|
|
"r_hash", |
|
|
|
2, |
|
|
|
PROTOBUF_C_LABEL_REQUIRED, |
|
|
|
PROTOBUF_C_TYPE_MESSAGE, |
|
|
|
0, /* quantifier_offset */ |
|
|
|
offsetof(UpdateTimedoutHtlc, r_hash), |
|
|
|
&sha256_hash__descriptor, |
|
|
|
NULL, |
|
|
|
0, /* flags */ |
|
|
|
0,NULL,NULL /* reserved1,reserved2, etc */ |
|
|
|
}, |
|
|
|
}; |
|
|
|
static const unsigned update_timedout_htlc__field_indices_by_name[] = { |
|
|
|
1, /* field[1] = r_hash */ |
|
|
|
0, /* field[0] = revocation_hash */ |
|
|
|
}; |
|
|
|
static const ProtobufCIntRange update_timedout_htlc__number_ranges[1 + 1] = |
|
|
|
{ |
|
|
|
{ 1, 0 }, |
|
|
|
{ 0, 2 } |
|
|
|
}; |
|
|
|
const ProtobufCMessageDescriptor update_timedout_htlc__descriptor = |
|
|
|
{ |
|
|
|
PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, |
|
|
|
"update_timedout_htlc", |
|
|
|
"UpdateTimedoutHtlc", |
|
|
|
"UpdateTimedoutHtlc", |
|
|
|
"", |
|
|
|
sizeof(UpdateTimedoutHtlc), |
|
|
|
2, |
|
|
|
update_timedout_htlc__field_descriptors, |
|
|
|
update_timedout_htlc__field_indices_by_name, |
|
|
|
1, update_timedout_htlc__number_ranges, |
|
|
|
(ProtobufCMessageInit) update_timedout_htlc__init, |
|
|
|
NULL,NULL,NULL /* reserved[123] */ |
|
|
|
}; |
|
|
|
static const ProtobufCFieldDescriptor update_fail_htlc__field_descriptors[2] = |
|
|
|
{ |
|
|
|
{ |
|
|
@ -2259,7 +2165,7 @@ const ProtobufCMessageDescriptor error__descriptor = |
|
|
|
(ProtobufCMessageInit) error__init, |
|
|
|
NULL,NULL,NULL /* reserved[123] */ |
|
|
|
}; |
|
|
|
static const ProtobufCFieldDescriptor pkt__field_descriptors[17] = |
|
|
|
static const ProtobufCFieldDescriptor pkt__field_descriptors[16] = |
|
|
|
{ |
|
|
|
{ |
|
|
|
"update_add_htlc", |
|
|
@ -2333,18 +2239,6 @@ static const ProtobufCFieldDescriptor pkt__field_descriptors[17] = |
|
|
|
0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ |
|
|
|
0,NULL,NULL /* reserved1,reserved2, etc */ |
|
|
|
}, |
|
|
|
{ |
|
|
|
"update_timedout_htlc", |
|
|
|
8, |
|
|
|
PROTOBUF_C_LABEL_OPTIONAL, |
|
|
|
PROTOBUF_C_TYPE_MESSAGE, |
|
|
|
offsetof(Pkt, pkt_case), |
|
|
|
offsetof(Pkt, update_timedout_htlc), |
|
|
|
&update_timedout_htlc__descriptor, |
|
|
|
NULL, |
|
|
|
0 | PROTOBUF_C_FIELD_FLAG_ONEOF, /* flags */ |
|
|
|
0,NULL,NULL /* reserved1,reserved2, etc */ |
|
|
|
}, |
|
|
|
{ |
|
|
|
"update_fail_htlc", |
|
|
|
9, |
|
|
@ -2467,32 +2361,32 @@ static const ProtobufCFieldDescriptor pkt__field_descriptors[17] = |
|
|
|
}, |
|
|
|
}; |
|
|
|
static const unsigned pkt__field_indices_by_name[] = { |
|
|
|
16, /* field[16] = auth */ |
|
|
|
12, /* field[12] = close */ |
|
|
|
14, /* field[14] = close_ack */ |
|
|
|
13, /* field[13] = close_complete */ |
|
|
|
15, /* field[15] = error */ |
|
|
|
8, /* field[8] = open */ |
|
|
|
9, /* field[9] = open_anchor */ |
|
|
|
10, /* field[10] = open_commit_sig */ |
|
|
|
11, /* field[11] = open_complete */ |
|
|
|
15, /* field[15] = auth */ |
|
|
|
11, /* field[11] = close */ |
|
|
|
13, /* field[13] = close_ack */ |
|
|
|
12, /* field[12] = close_complete */ |
|
|
|
14, /* field[14] = error */ |
|
|
|
7, /* field[7] = open */ |
|
|
|
8, /* field[8] = open_anchor */ |
|
|
|
9, /* field[9] = open_commit_sig */ |
|
|
|
10, /* field[10] = open_complete */ |
|
|
|
1, /* field[1] = update_accept */ |
|
|
|
0, /* field[0] = update_add_htlc */ |
|
|
|
3, /* field[3] = update_complete */ |
|
|
|
4, /* field[4] = update_decline_htlc */ |
|
|
|
7, /* field[7] = update_fail_htlc */ |
|
|
|
6, /* field[6] = update_fail_htlc */ |
|
|
|
5, /* field[5] = update_fulfill_htlc */ |
|
|
|
2, /* field[2] = update_signature */ |
|
|
|
6, /* field[6] = update_timedout_htlc */ |
|
|
|
}; |
|
|
|
static const ProtobufCIntRange pkt__number_ranges[5 + 1] = |
|
|
|
static const ProtobufCIntRange pkt__number_ranges[6 + 1] = |
|
|
|
{ |
|
|
|
{ 2, 0 }, |
|
|
|
{ 20, 8 }, |
|
|
|
{ 30, 12 }, |
|
|
|
{ 40, 15 }, |
|
|
|
{ 50, 16 }, |
|
|
|
{ 0, 17 } |
|
|
|
{ 9, 6 }, |
|
|
|
{ 20, 7 }, |
|
|
|
{ 30, 11 }, |
|
|
|
{ 40, 14 }, |
|
|
|
{ 50, 15 }, |
|
|
|
{ 0, 16 } |
|
|
|
}; |
|
|
|
const ProtobufCMessageDescriptor pkt__descriptor = |
|
|
|
{ |
|
|
@ -2502,10 +2396,10 @@ const ProtobufCMessageDescriptor pkt__descriptor = |
|
|
|
"Pkt", |
|
|
|
"", |
|
|
|
sizeof(Pkt), |
|
|
|
17, |
|
|
|
16, |
|
|
|
pkt__field_descriptors, |
|
|
|
pkt__field_indices_by_name, |
|
|
|
5, pkt__number_ranges, |
|
|
|
6, pkt__number_ranges, |
|
|
|
(ProtobufCMessageInit) pkt__init, |
|
|
|
NULL,NULL,NULL /* reserved[123] */ |
|
|
|
}; |
|
|
|