Skip to content

Commit 4201760

Browse files
authored
Merge pull request #314 from tnull/2024-06-only-broadcast-node-ann-when-ready
2 parents 0e02969 + bc1fac3 commit 4201760

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,8 +580,8 @@ impl Node {
580580
continue;
581581
}
582582

583-
if !bcast_cm.list_channels().iter().any(|chan| chan.is_public) {
584-
// Skip if we don't have any public channels.
583+
if !bcast_cm.list_channels().iter().any(|chan| chan.is_public && chan.is_channel_ready) {
584+
// Skip if we don't have any public channels that are ready.
585585
continue;
586586
}
587587

0 commit comments

Comments
 (0)