|
|
@ -467,7 +467,7 @@ static bool check_channel_announcement( |
|
|
|
|
|
|
|
bool handle_channel_announcement( |
|
|
|
struct routing_state *rstate, |
|
|
|
const u8 *announce, size_t len) |
|
|
|
const u8 *announce) |
|
|
|
{ |
|
|
|
u8 *serialized; |
|
|
|
bool forward = false, local, sigfail; |
|
|
@ -484,6 +484,7 @@ bool handle_channel_announcement( |
|
|
|
struct node_connection *c0, *c1; |
|
|
|
const tal_t *tmpctx = tal_tmpctx(rstate); |
|
|
|
u8 *features; |
|
|
|
size_t len = tal_len(announce); |
|
|
|
|
|
|
|
serialized = tal_dup_arr(tmpctx, u8, announce, len, 0); |
|
|
|
if (!fromwire_channel_announcement(tmpctx, serialized, NULL, |
|
|
@ -563,7 +564,7 @@ bool handle_channel_announcement( |
|
|
|
return local; |
|
|
|
} |
|
|
|
|
|
|
|
void handle_channel_update(struct routing_state *rstate, const u8 *update, size_t len) |
|
|
|
void handle_channel_update(struct routing_state *rstate, const u8 *update) |
|
|
|
{ |
|
|
|
u8 *serialized; |
|
|
|
struct node_connection *c; |
|
|
@ -577,6 +578,7 @@ void handle_channel_update(struct routing_state *rstate, const u8 *update, size_ |
|
|
|
u32 fee_proportional_millionths; |
|
|
|
const tal_t *tmpctx = tal_tmpctx(rstate); |
|
|
|
struct sha256_double chain_hash; |
|
|
|
size_t len = tal_len(update); |
|
|
|
|
|
|
|
serialized = tal_dup_arr(tmpctx, u8, update, len, 0); |
|
|
|
if (!fromwire_channel_update(serialized, NULL, &signature, |
|
|
@ -684,7 +686,7 @@ static struct wireaddr *read_addresses(const tal_t *ctx, const u8 *ser) |
|
|
|
} |
|
|
|
|
|
|
|
void handle_node_announcement( |
|
|
|
struct routing_state *rstate, const u8 *node_ann, size_t len) |
|
|
|
struct routing_state *rstate, const u8 *node_ann) |
|
|
|
{ |
|
|
|
u8 *serialized; |
|
|
|
struct sha256_double hash; |
|
|
@ -697,6 +699,7 @@ void handle_node_announcement( |
|
|
|
u8 *features, *addresses; |
|
|
|
const tal_t *tmpctx = tal_tmpctx(rstate); |
|
|
|
struct wireaddr *wireaddrs; |
|
|
|
size_t len = tal_len(node_ann); |
|
|
|
|
|
|
|
serialized = tal_dup_arr(tmpctx, u8, node_ann, len, 0); |
|
|
|
if (!fromwire_node_announcement(tmpctx, serialized, NULL, |
|
|
|