mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-23 09:04:22 +01:00
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:
committed by
Christian Decker
parent
ffddb91e3e
commit
91116fe67c
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user