feat: use Amount on TxBuilder::add_recipient

This commit is contained in:
Leonardo Lima
2024-04-26 11:41:17 -03:00
parent d5c0e7200c
commit 22aa534d76
9 changed files with 102 additions and 102 deletions

View File

@@ -1163,7 +1163,6 @@ impl<A: Anchor> TxGraph<A> {
for res in self.try_filter_chain_unspents(chain, chain_tip, outpoints) {
let (spk_i, txout) = res?;
// TODO: (@leonardo) Should these operations use `bitcoin::Amount::checked_add()` instead ?
match &txout.chain_position {
ChainPosition::Confirmed(_) => {
if txout.is_confirmed_and_spendable(chain_tip.height) {