Skip to content

Commit 0880b4d

Browse files
committed
Prune channels if either not updated
1 parent 63c4649 commit 0880b4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/routing/gossip.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1688,7 +1688,7 @@ impl<L: Deref> NetworkGraph<L> where L::Target: Logger {
16881688
if info.two_to_one.is_some() && info.two_to_one.as_ref().unwrap().last_update < min_time_unix {
16891689
info.two_to_one = None;
16901690
}
1691-
if info.one_to_two.is_none() && info.two_to_one.is_none() {
1691+
if info.one_to_two.is_none() || info.two_to_one.is_none() {
16921692
// We check the announcement_received_time here to ensure we don't drop
16931693
// announcements that we just received and are just waiting for our peer to send a
16941694
// channel_update for.

0 commit comments

Comments
 (0)