diff --git a/crates/ln-dlc-node/src/on_chain_wallet.rs b/crates/ln-dlc-node/src/on_chain_wallet.rs index 5c376afb8..adb1a2a30 100644 --- a/crates/ln-dlc-node/src/on_chain_wallet.rs +++ b/crates/ln-dlc-node/src/on_chain_wallet.rs @@ -125,10 +125,8 @@ impl OnChainWallet { let tip = self.get_tip(); let n_confirmations = match tip.checked_sub(confirmation_height) { - Some(diff) => NonZeroU32::new(diff).unwrap_or({ - // Being included in a block counts as a confirmation! - NonZeroU32::new(1).expect("non-zero value") - }), + // Being included in a block counts as a confirmation! + Some(diff) => NonZeroU32::new(diff + 1).expect("non-zero"), None => { // The transaction shouldn't be ahead of the tip! debug_assert!(false);