From: Galder ZamarrenĖƒo Date: Fri, 5 Feb 2021 12:29:56 +0000 (+0100) Subject: Unknown bits feature only needs to be validated once #792 X-Git-Tag: v0.0.13~34^2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=048e862a4b3fefb2d9efb0c8112da36088978569;p=rust-lightning Unknown bits feature only needs to be validated once #792 --- diff --git a/lightning/src/ln/peer_handler.rs b/lightning/src/ln/peer_handler.rs index e083c0119..91fd9698c 100644 --- a/lightning/src/ln/peer_handler.rs +++ b/lightning/src/ln/peer_handler.rs @@ -678,11 +678,7 @@ impl PeerManager { if msg.features.requires_unknown_bits() { - log_info!(self.logger, "Peer global features required unknown version bits"); - return Err(PeerHandleError{ no_connection_possible: true }.into()); - } - if msg.features.requires_unknown_bits() { - log_info!(self.logger, "Peer local features required unknown version bits"); + log_info!(self.logger, "Peer features required unknown version bits"); return Err(PeerHandleError{ no_connection_possible: true }.into()); } if peer.their_features.is_some() {