Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions crates/wallet/src/wallet/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1996,7 +1996,6 @@ impl Wallet {
let must_only_use_confirmed_tx = bumping_fee.is_some();
let must_use_all_available = *drain_wallet;

let chain_tip = self.chain.tip().block_id();
// must_spend <- manually selected utxos
// may_spend <- all other available utxos
let mut may_spend = self.get_available_utxos();
Expand All @@ -2022,17 +2021,10 @@ impl Wallet {
Some(tx) => tx,
None => return false,
};
let chain_position = match self.indexed_graph.graph().get_chain_position(
&self.chain,
chain_tip,
txid,
) {
Some(chain_position) => chain_position.cloned(),
None => return false,
};

// Whether the UTXO is mature and, if needed, confirmed
let mut spendable = true;
let chain_position = u.0.chain_position;
if must_only_use_confirmed_tx && !chain_position.is_confirmed() {
return false;
}
Expand Down
Loading