Skip to content

Commit ef178be

Browse files
committed
f - take into account the first confirmation
1 parent b65c073 commit ef178be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11717,7 +11717,7 @@ where
1171711717
.zip(historical_scids.iter().skip(1).chain(core::iter::once(&current_scid)))
1171811718
{
1171911719
let funding_height = block_from_scid(*next_scid);
11720-
let retain_scid = funding_height + CHANNEL_ANNOUNCEMENT_PROPAGATION_DELAY > height;
11720+
let retain_scid = funding_height + CHANNEL_ANNOUNCEMENT_PROPAGATION_DELAY - 1 > height;
1172111721
if !retain_scid {
1172211722
short_to_chan_info.remove(scid);
1172311723
}

0 commit comments

Comments
 (0)