From 1d9b7d9698e185cc1eb49f958109f3c04e6a2af6 Mon Sep 17 00:00:00 2001 From: ardocrat Date: Tue, 14 Jan 2025 17:55:50 +0300 Subject: [PATCH] wallet: do not lock whole balance on send --- src/wallet/wallet.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wallet/wallet.rs b/src/wallet/wallet.rs index 99e4ef6..cc28a3d 100644 --- a/src/wallet/wallet.rs +++ b/src/wallet/wallet.rs @@ -617,7 +617,7 @@ impl Wallet { let r_inst = self.instance.as_ref().read(); let instance = r_inst.clone().unwrap(); let mut api = Owner::new(instance, None); - return match parse_slatepack(&mut api, None, None, Some(text.clone())) { + match parse_slatepack(&mut api, None, None, Some(text.clone())) { Ok(s) => Ok(s.0), Err(e) => Err(e) } @@ -714,7 +714,7 @@ impl Wallet { amount, minimum_confirmations: config.min_confirmations, num_change_outputs: 1, - selection_strategy_is_use_all: true, + selection_strategy_is_use_all: false, ..Default::default() }; let r_inst = self.instance.as_ref().read(); @@ -857,7 +857,7 @@ impl Wallet { src_acct_name: None, amount: slate.amount, minimum_confirmations: config.min_confirmations, - selection_strategy_is_use_all: true, + selection_strategy_is_use_all: false, ..Default::default() }; let r_inst = self.instance.as_ref().read();