]> git.bitcoin.ninja Git - rust-lightning/commit
Reliably deliver gossip messages from our `ChannelMessageHandler`
authorMatt Corallo <git@bluematt.me>
Mon, 24 Jun 2024 20:24:36 +0000 (20:24 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 1 Oct 2024 16:49:38 +0000 (16:49 +0000)
commit1dd63710c6efc97bc9928195c31c7a5caf6a9deb
tree391e3c9587835d41c12935b581fd921069721bff
parentd13f336d16485098cb1ab9b5bc7f838ca2216d77
Reliably deliver gossip messages from our `ChannelMessageHandler`

When our `ChannelMessageHandler` creates gossip broadcast
`MessageSendEvent`s, we generally want these to be reliably
delivered to all our peers, even if there's not much buffer space
available.

Here we do this by passing an extra flag to `forward_broadcast_msg`
which indicates where the message came from, then ignoring the
buffer-full criteria when the flag is set.
lightning/src/ln/peer_handler.rs