Skip to content

Commit

Permalink
electrum: fix update of spend_txid for spending coins
Browse files Browse the repository at this point in the history
  • Loading branch information
jp1ac4 committed Sep 12, 2024
1 parent 718234c commit a8bb0d3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/bitcoin/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
));
}
}
}
Expand Down

0 comments on commit a8bb0d3

Please sign in to comment.