Skip to content

Commit 46e8837

Browse files
committed
f huh, new tests fail now
1 parent be18acd commit 46e8837

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/chain/channelmonitor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3047,7 +3047,7 @@ impl<Signer: EcdsaChannelSigner> ChannelMonitor<Signer> {
30473047
let confirmed_txid = us.funding_spend_confirmed.or_else(|| {
30483048
us.onchain_events_awaiting_threshold_conf.iter().find_map(|event| {
30493049
if let OnchainEvent::FundingSpendConfirmation { .. } = event.event {
3050-
if event.height <= us.best_block.height - ANTI_REORG_DELAY + 1 {
3050+
if event.height + ANTI_REORG_DELAY - 1 <= us.best_block.height {
30513051
Some(event.txid)
30523052
} else {
30533053
None

0 commit comments

Comments
 (0)