Skip to content

Commit ec6e21b

Browse files
committed
f use util
1 parent 723253e commit ec6e21b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/peer_handler.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ impl Peer {
458458

459459
/// Similar to the above, but for node announcements indexed by node_id.
460460
fn should_forward_node_announcement(&self, node_id: NodeId) -> bool {
461-
if self.their_features.is_none() { return false; }
461+
if !self.handshake_complete() { return false; }
462462
if self.their_features.as_ref().unwrap().supports_gossip_queries() &&
463463
!self.sent_gossip_timestamp_filter {
464464
return false;

0 commit comments

Comments
 (0)