Skip to content

Commit

Permalink
Merge pull request #248 from tnull/2024-02-fix-node-ann-broadcast
Browse files Browse the repository at this point in the history
Fix trying node announcement broadcast for unannouced nodes
  • Loading branch information
tnull authored Feb 12, 2024
2 parents 6fef493 + dea1bb4 commit ff38966
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ impl<K: KVStore + Sync + Send + 'static> Node<K> {
continue;
}

if bcast_cm.list_channels().iter().any(|chan| chan.is_public) {
if !bcast_cm.list_channels().iter().any(|chan| chan.is_public) {
// Skip if we don't have any public channels.
continue;
}
Expand Down

0 comments on commit ff38966

Please sign in to comment.