Skip to content

Commit 3dd59f4

Browse files
committed
refactor(wallet): rename preselect_utxos to filter_utxos
1 parent 8cc221c commit 3dd59f4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • crates/wallet/src/wallet

crates/wallet/src/wallet/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1418,7 +1418,7 @@ impl Wallet {
14181418
fee_amount += fee_rate * tx.weight();
14191419

14201420
let (required_utxos, optional_utxos) =
1421-
self.preselect_utxos(&params, Some(current_height.to_consensus_u32()));
1421+
self.filter_utxos(&params, Some(current_height.to_consensus_u32()));
14221422

14231423
// get drain script
14241424
let mut drain_index = Option::<(KeychainKind, u32)>::None;
@@ -1970,7 +1970,7 @@ impl Wallet {
19701970

19711971
/// Given the options returns the list of utxos that must be used to form the
19721972
/// transaction and any further that may be used if needed.
1973-
fn preselect_utxos(
1973+
fn filter_utxos(
19741974
&self,
19751975
params: &TxParams,
19761976
current_height: Option<u32>,
@@ -2030,7 +2030,7 @@ impl Wallet {
20302030
})
20312031
// include foreign UTxOs
20322032
.chain(params.foreign_utxos.clone())
2033-
// TODO: here preselect_utxos could be splitted further into two functions to allow the
2033+
// TODO: here filter_utxos could be splitted further into two functions to allow the
20342034
// addition of extra filters for inputs based on properties of the WeightedUtxos
20352035
//
20362036
// split UTxOs in required and optional

0 commit comments

Comments
 (0)