From 49bcbd2b0975f8cedd14e0fc285969884f59fa36 Mon Sep 17 00:00:00 2001 From: LLFourn Date: Thu, 22 Oct 2020 12:07:51 +1100 Subject: [PATCH] [wallet] Stop implicitly enforcing manaul selection by .add_utxo This makes it possible to choose a UTXO manually without having to choose them *all* manually. I introduced the `manually_selected_only` option to enforce that only manually selected utxos can be used. To stop the cli semantics changing I made the `utxos` keep the old behaviour by calling `manually_selected_only`. --- src/cli.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli.rs b/src/cli.rs index bf50d96..06b74fc 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -406,7 +406,7 @@ where .map(|i| parse_outpoint(i)) .collect::, _>>() .map_err(|s| Error::Generic(s.to_string()))?; - tx_builder = tx_builder.utxos(utxos); + tx_builder = tx_builder.utxos(utxos).manually_selected_only(); } if let Some(unspendable) = sub_matches.values_of("unspendable") { -- 2.49.0