mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-22 23:34:21 +01:00
We have a function called 'wake_pkt_out' which is really 'start gossiping', so rename it to 'wake_gossip_out'. In addition, it's fired both on a timer, and in response to our first gossip_timestamp_filter, which leads to very confusing (though, technically, not incorrect) behavior. Keep a single timer at all times, which now doubles as the flag to indicating we're syncing right now. Set it once we're done syncing gossip. Technically this means we got from once-every-60-seconds to quiet-for-60-seconds-between-gossip, but that's OK. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>