mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-27 09:44:28 +01:00
gossip: Moving to intmap-based broadcast for the legacy daemon
Moved the broadcast functionality to broadcast.[ch]. So far this includes only the enqueuing side of broadcasts, the dequeuing and actual push to the peer is daemon dependent. This also adds the broadcast_state to the routing_state and the last broadcast index to the peer for the legacy daemon.
This commit is contained in:
committed by
Rusty Russell
parent
3aa45a6d0b
commit
76e2c980e1
@@ -2772,6 +2772,7 @@ struct peer *new_peer(struct lightningd_state *dstate,
|
||||
peer->fake_close = false;
|
||||
peer->output_enabled = true;
|
||||
peer->local.offer_anchor = offer_anchor;
|
||||
peer->broadcast_index = 0;
|
||||
if (!blocks_to_rel_locktime(dstate->config.locktime_blocks,
|
||||
&peer->local.locktime))
|
||||
fatal("Could not convert locktime_blocks");
|
||||
|
||||
Reference in New Issue
Block a user