]> git.bitcoin.ninja Git - rust-lightning/commit
Use util methods in `Peer` to decide when to forward
authorValentine Wallace <vwallace@protonmail.com>
Tue, 9 Aug 2022 21:20:56 +0000 (21:20 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 10 Aug 2022 19:29:39 +0000 (19:29 +0000)
commit4a1ee5f9a984c9b0c0892025d624ade734337b1a
treeba49e00493fcfbe8ff17152b3a2cd8604d1de399
parentd02425121ec082689a18bb0b22bec226cc02ff7d
Use util methods in `Peer` to decide when to forward

This consolidates our various checks on peer buffer space into the
`Peer` impl itself, making the thresholds at which we stop taking
various actions on a peer more readable as a whole.

This commit was primarily authored by `Valentine Wallace
<vwallace@protonmail.com>` with some amendments by `Matt Corallo
<git@bluematt.me>`.
lightning/src/ln/peer_handler.rs