]> git.bitcoin.ninja Git - rust-lightning/commit
Send channel_{announcement,update} msgs on connection, not timer
authorMatt Corallo <git@bluematt.me>
Tue, 6 Sep 2022 21:30:33 +0000 (21:30 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 8 Sep 2022 19:50:36 +0000 (19:50 +0000)
commit6b0afbe4d46e2bf71ce8c54a05ab1beb7d38e36d
treebbd9f37880e0c63c8285aaf6b32de121a59d34ce
parent301efc8a81720655b63b0b3b5bdada670ea088cc
Send channel_{announcement,update} msgs on connection, not timer

When we connect to a new peer, immediately send them any
channel_announcement and channel_update messages for any public
channels we have with other peers. This allows us to stop sending
those messages on a timer when they have not changed and ensures
we are sending messages when we have peers connected, rather than
broadcasting at startup when we have no peers connected.
lightning/src/ln/chanmon_update_fail_tests.rs
lightning/src/ln/channelmanager.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/ln/functional_tests.rs
lightning/src/ln/payment_tests.rs
lightning/src/ln/peer_handler.rs
lightning/src/ln/priv_short_conf_tests.rs
lightning/src/ln/shutdown_tests.rs
lightning/src/util/events.rs