]> git.bitcoin.ninja Git - rust-lightning/commit
Add an `inbound` flag to the `peer_connected` message handlers
authorMatt Corallo <git@bluematt.me>
Thu, 26 Jan 2023 04:45:58 +0000 (04:45 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 21 Feb 2023 22:00:42 +0000 (22:00 +0000)
commit4155f54716f6bc8632d2a501d22c51a2545670b1
treeb459a091c85d481925e129d44a233bbb9884edd1
parente954ee8256a70ee917135f4c03c8726bf305c2fc
Add an `inbound` flag to the `peer_connected` message handlers

Its useful for the message handlers to know if a peer is inbound
for DoS decision-making reasons.
18 files changed:
fuzz/src/chanmon_consistency.rs
lightning-background-processor/src/lib.rs
lightning-net-tokio/src/lib.rs
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/msgs.rs
lightning/src/ln/payment_tests.rs
lightning/src/ln/peer_handler.rs
lightning/src/ln/priv_short_conf_tests.rs
lightning/src/ln/reload_tests.rs
lightning/src/ln/reorg_tests.rs
lightning/src/ln/shutdown_tests.rs
lightning/src/onion_message/functional_tests.rs
lightning/src/onion_message/messenger.rs
lightning/src/routing/gossip.rs
lightning/src/util/test_utils.rs