]> Untitled Git - bdk/commitdiff
Rename get_must_may_use_utxos to preselect_utxos
authorMurch <murch@murch.one>
Mon, 26 Oct 2020 18:23:46 +0000 (14:23 -0400)
committerMurch <murch@murch.one>
Wed, 28 Oct 2020 03:24:03 +0000 (23:24 -0400)
src/wallet/mod.rs

index 3106414d30b2b450cbd6cac5770c81069ec535d9..daff02619207c219d2b0ee4d793691eb389d28bf 100644 (file)
@@ -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.unspendable,
             &builder.utxos,
@@ -604,7 +604,7 @@ where
             .cloned()
             .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.unspendable,
             &builder_extra_utxos[..],
@@ -985,7 +985,7 @@ where
     /// 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.
     #[allow(clippy::type_complexity)]
-    fn get_must_may_use_utxos(
+    fn preselect_utxos(
         &self,
         change_policy: tx_builder::ChangeSpendPolicy,
         unspendable: &HashSet<OutPoint>,