]> git.bitcoin.ninja Git - rust-lightning/commit
Don't apply gossip backpressure to non-channel-announcing peers
authorMatt Corallo <git@bluematt.me>
Mon, 30 Jan 2023 17:56:46 +0000 (17:56 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 9 Feb 2023 15:40:43 +0000 (15:40 +0000)
commitc21480f7d3659091e7ebd0fdd71aa4de21866e75
tree0c7cfa9f8dc32b7a16c0570eb747a50f35d7b3d8
parent00a70c25f9111f8f733f2ca4a0a61ba67d2d56a8
Don't apply gossip backpressure to non-channel-announcing peers

When we apply the new gossip-async-check backpressure on peer
connections, if a peer has never sent us a `channel_announcement`
at all, we really shouldn't delay reading their messages.

This does so by tracking, on a per-peer basis, whether they've sent
us a channel_announcement, and resetting that state whenever we're
not backlogged.
lightning/src/ln/peer_handler.rs