From a8bb0d3ac5a1f57660460c0dc5c2e9858b8f098f Mon Sep 17 00:00:00 2001 From: Michael Mallan Date: Wed, 11 Sep 2024 16:26:43 +0100 Subject: [PATCH] electrum: fix update of spend_txid for spending coins --- src/bitcoin/mod.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/bitcoin/mod.rs b/src/bitcoin/mod.rs index 104d80d6f..1664934d3 100644 --- a/src/bitcoin/mod.rs +++ b/src/bitcoin/mod.rs @@ -502,7 +502,13 @@ impl BitcoinInterface for electrum::Electrum { expired_spending.push(*op); } if let Some(block) = w_c.spend_block { - spent.push((*op, *spend_txid, block.height, block.time)); + spent.push(( + *op, + w_c.spend_txid + .expect("must have spend_txid if spend_block present"), + block.height, + block.time, + )); } } }