Rename get_must_may_use_utxos to preselect_utxos
This commit is contained in:
parent
84aee3baab
commit
457e70e70f
@ -348,7 +348,7 @@ where
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
let (required_utxos, optional_utxos) = self.get_must_may_use_utxos(
|
let (required_utxos, optional_utxos) = self.preselect_utxos(
|
||||||
builder.change_policy,
|
builder.change_policy,
|
||||||
&builder.unspendable,
|
&builder.unspendable,
|
||||||
&builder.utxos,
|
&builder.utxos,
|
||||||
@ -604,7 +604,7 @@ where
|
|||||||
.cloned()
|
.cloned()
|
||||||
.collect::<Vec<_>>();
|
.collect::<Vec<_>>();
|
||||||
|
|
||||||
let (mut required_utxos, optional_utxos) = self.get_must_may_use_utxos(
|
let (mut required_utxos, optional_utxos) = self.preselect_utxos(
|
||||||
builder.change_policy,
|
builder.change_policy,
|
||||||
&builder.unspendable,
|
&builder.unspendable,
|
||||||
&builder_extra_utxos[..],
|
&builder_extra_utxos[..],
|
||||||
@ -985,7 +985,7 @@ where
|
|||||||
/// Given the options returns the list of utxos that must be used to form the
|
/// Given the options returns the list of utxos that must be used to form the
|
||||||
/// transaction and any further that may be used if needed.
|
/// transaction and any further that may be used if needed.
|
||||||
#[allow(clippy::type_complexity)]
|
#[allow(clippy::type_complexity)]
|
||||||
fn get_must_may_use_utxos(
|
fn preselect_utxos(
|
||||||
&self,
|
&self,
|
||||||
change_policy: tx_builder::ChangeSpendPolicy,
|
change_policy: tx_builder::ChangeSpendPolicy,
|
||||||
unspendable: &HashSet<OutPoint>,
|
unspendable: &HashSet<OutPoint>,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user