From 048e862a4b3fefb2d9efb0c8112da36088978569 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Galder=20Zamarren=CC=83o?= Date: Fri, 5 Feb 2021 13:29:56 +0100 Subject: [PATCH] Unknown bits feature only needs to be validated once #792 --- lightning/src/ln/peer_handler.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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() { -- 2.39.5