Skip to content

Commit

Permalink
Fix trying node announcement broadcast for unannouced nodes
Browse files Browse the repository at this point in the history
Previously, we would skip broadcasting node announcements if we had any
public channel. Here, we fix this bug and instead skip broadcasts if we
*don't* have any public channels.
  • Loading branch information
tnull committed Feb 10, 2024
1 parent 6fef493 commit dea1bb4
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 dea1bb4

Please sign in to comment.