Ensure handlers see a consistent set of peers on conn rejection 2023-10-peer-race-send-discon-test
authorMatt Corallo <git@bluematt.me>
Fri, 13 Oct 2023 19:55:24 +0000 (19:55 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 18 Oct 2023 20:07:06 +0000 (20:07 +0000)
commit9ac7282dd8a0a90d279580cf993893fc97f81a45
treeda0261778138cacd034af83ffea381d45d28d633
parentd758d7600ab913acb089ac23d8b2ddd280f6c9f4
Ensure handlers see a consistent set of peers on conn rejection

If a message handler decides to reject a connection, other handlers
should see the disconnection if they've already seen the
connection. We weren't previously doing that, and do it here.
lightning/src/ln/peer_handler.rs