Send a `gossip_timestamp_filter` on connect to enable gossip sync 2022-03-fix-post-start-sync
authorMatt Corallo <git@bluematt.me>
Thu, 17 Mar 2022 22:14:43 +0000 (22:14 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 17 Mar 2022 22:18:33 +0000 (22:18 +0000)
commit3cca221f8b41e9a42df748f972d14d851c826626
tree3ab56c49590c9d19784d3bd2ce0dde10c99188ce
parentb1fb7fdb9bacfa486320f2fbdc594d96b355c85a
Send a `gossip_timestamp_filter` on connect to enable gossip sync

On connection, if our peer supports gossip queries, and we never
send a `gossip_timestamp_filter`, our peer is supposed to never
send us gossip outside of explicit queries. Thus, we'll end up
always having stale gossip information after the first few
connections we make to peers.

The solution is to send a dummy `gossip_timestamp_filter`
immediately after connecting to peers.
lightning/src/ln/channelmanager.rs
lightning/src/ln/peer_handler.rs
lightning/src/routing/network_graph.rs
lightning/src/util/events.rs