gossip: include chain_hash in gossip messages.

As per lightning-rfc change 956e8809d9d1ee87e31b855923579b96943d5e63
"BOLT 7: add chain_hashes values to channel_update and channel_announcment"

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2017-08-22 14:55:01 +09:30
committed by Christian Decker
parent ffddb91e3e
commit 91116fe67c
9 changed files with 85 additions and 22 deletions

View File

@@ -86,6 +86,8 @@ struct routing_state {
struct log *base_log;
struct broadcast_state *broadcasts;
struct sha256_double chain_hash;
};
struct route_hop {
@@ -96,7 +98,8 @@ struct route_hop {
};
//FIXME(cdecker) The log will have to be replaced for the new subdaemon, keeping for now to keep changes small.
struct routing_state *new_routing_state(const tal_t *ctx, struct log *base_log);
struct routing_state *new_routing_state(const tal_t *ctx, struct log *base_log,
const struct sha256_double *chain_hash);
struct node *new_node(struct routing_state *rstate,
const struct pubkey *id);