feat: use Amount on TxBuilder::add_recipient

This commit is contained in:
Leonardo Lima committed 2024-05-05 12:07:07 -03:00
1 parent d5c0e7200c
commit 22aa534d76
9 files changed
+102 -102

No files matched your search

-1
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) {