We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf46a5f commit e9fed49Copy full SHA for e9fed49
src/ln/peer_handler.rs
@@ -445,6 +445,9 @@ impl<Descriptor: SocketDescriptor> PeerManager<Descriptor> {
445
if msg.local_features.requires_unknown_bits() {
446
return Err(PeerHandleError{ no_connection_possible: true });
447
}
448
+ if peer.their_global_features.is_some() {
449
+ return Err(PeerHandleError{ no_connection_possible: false });
450
+ }
451
peer.their_global_features = Some(msg.global_features);
452
peer.their_local_features = Some(msg.local_features);
453
0 commit comments