Skip to content

Commit

Permalink
doc(wallet): add comments for required UTxOs in Wallet::create_tx
Browse files Browse the repository at this point in the history
  • Loading branch information
nymius committed Jan 28, 2025
1 parent f4fec44 commit 115f740
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/wallet/src/wallet/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1418,10 +1418,12 @@ impl Wallet {
fee_amount += fee_rate * tx.weight();

let (required_utxos, optional_utxos) = {
// NOTE: manual selection overrides unspendable
let mut required: Vec<WeightedUtxo> = params
.utxos
.clone()
.into_iter()
// transform required UTxOs into a WeightedUtxo
.map(|utxo| WeightedUtxo {
satisfaction_weight: self
.public_descriptor(utxo.keychain)
Expand Down

0 comments on commit 115f740

Please sign in to comment.