mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
developer: consolidiate gossip timing options into one --dev-fast-gossip.
It's generally clearer to have simple hardcoded numbers with an #if DEVELOPER around it, than apparent variables which aren't, really. Interestingly, our pruning test was always kinda broken: we have to pass two cycles, since l2 will refresh the channel once to avoid pruning. Do the more obvious thing, and cut the network in half and check that l1 and l3 time out. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -937,12 +937,6 @@ void peer_connected(struct lightningd *ld, const u8 *msg,
|
||||
fatal("Connectd gave bad CONNECT_PEER_CONNECTED message %s",
|
||||
tal_hex(msg, msg));
|
||||
|
||||
#if DEVELOPER
|
||||
/* Override broaedcast interval from our config */
|
||||
hook_payload->pps->dev_gossip_broadcast_msec
|
||||
= ld->config.broadcast_interval_msec;
|
||||
#endif
|
||||
|
||||
per_peer_state_set_fds(hook_payload->pps,
|
||||
peer_fd, gossip_fd, gossip_store_fd);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user