Skip to content

Commit 7dae6ac

Browse files
committed
f - Support skipping blocks in has_reached_confirmation_threshold
1 parent 1de7082 commit 7dae6ac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lightning/src/chain/channelmonitor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ impl OnchainEventEntry {
480480
}
481481

482482
fn has_reached_confirmation_threshold(&self, height: u32) -> bool {
483-
self.confirmation_threshold() == height
483+
height >= self.confirmation_threshold()
484484
}
485485
}
486486

lightning/src/ln/onchaintx.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ impl OnchainEventEntry {
5454
}
5555

5656
fn has_reached_confirmation_threshold(&self, height: u32) -> bool {
57-
self.confirmation_threshold() == height
57+
height >= self.confirmation_threshold()
5858
}
5959
}
6060

0 commit comments

Comments
 (0)