]> 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>
Thu, 17 Oct 2024 19:09:15 +0000 (19:09 +0000)
commit1b711ed15f426ce40f1aa6be83d930a01ab530ba
tree0d95a8218d7fddb2be2aa58e46ee0ecd1605b641
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