From: LLFourn Date: Thu, 22 Oct 2020 01:07:51 +0000 (+1100) Subject: [wallet] Stop implicitly enforcing manaul selection by .add_utxo X-Git-Tag: v0.1.0~40 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/-sqlite-db-configuration/struct.EncoderStringWriter.html?a=commitdiff_plain;h=49bcbd2b0975f8cedd14e0fc285969884f59fa36;p=bdk-cli [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`. --- 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") {