From: Matt Corallo Date: Fri, 13 Oct 2023 19:55:24 +0000 (+0000) Subject: Ensure handlers see a consistent set of peers on conn rejection X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=refs%2Fheads%2F2023-10-peer-race-send-discon-test;p=rust-lightning 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. --- diff --git a/lightning/src/ln/peer_handler.rs b/lightning/src/ln/peer_handler.rs index 77087f38..4298f715 100644 --- a/lightning/src/ln/peer_handler.rs +++ b/lightning/src/ln/peer_handler.rs @@ -1561,10 +1561,13 @@ impl