We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be18acd commit 46e8837Copy full SHA for 46e8837
lightning/src/chain/channelmonitor.rs
@@ -3047,7 +3047,7 @@ impl<Signer: EcdsaChannelSigner> ChannelMonitor<Signer> {
3047
let confirmed_txid = us.funding_spend_confirmed.or_else(|| {
3048
us.onchain_events_awaiting_threshold_conf.iter().find_map(|event| {
3049
if let OnchainEvent::FundingSpendConfirmation { .. } = event.event {
3050
- if event.height <= us.best_block.height - ANTI_REORG_DELAY + 1 {
+ if event.height + ANTI_REORG_DELAY - 1 <= us.best_block.height {
3051
Some(event.txid)
3052
} else {
3053
None
0 commit comments