]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Unknown bits feature only needs to be validated once #792
authorGalder Zamarreño <galder@redhat.com>
Fri, 5 Feb 2021 12:29:56 +0000 (13:29 +0100)
committerGalder Zamarreño <galder@redhat.com>
Fri, 5 Feb 2021 12:29:56 +0000 (13:29 +0100)
lightning/src/ln/peer_handler.rs

index e083c0119cee82678dd89d803ab3fba1c775c525..91fd9698c26766fb96a0e1aa7b2a42ebc3fc829f 100644 (file)
@@ -678,11 +678,7 @@ impl<Descriptor: SocketDescriptor, CM: Deref, RM: Deref, L: Deref> PeerManager<D
                        // Setup and Control messages:
                        wire::Message::Init(msg) => {
                                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() {