From eb7bdc84d125aace9529493a666fa7e0a1a99272 Mon Sep 17 00:00:00 2001 From: Torkel Rogstad Date: Fri, 14 Feb 2025 09:39:46 +0100 Subject: [PATCH] wallet: unnecessary coinbase chain position assert This assertion is not needed, as unconfirmed coinbase TXs get filtered away in the branch below anyways. --- crates/wallet/src/wallet/mod.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/crates/wallet/src/wallet/mod.rs b/crates/wallet/src/wallet/mod.rs index 58b504dc9..c072c902d 100644 --- a/crates/wallet/src/wallet/mod.rs +++ b/crates/wallet/src/wallet/mod.rs @@ -2073,10 +2073,6 @@ impl Wallet { return false; } if tx.is_coinbase() { - debug_assert!( - chain_position.is_confirmed(), - "coinbase must always be confirmed" - ); if let Some(current_height) = current_height { match chain_position { ChainPosition::Confirmed(a) => {