wallet: do not lock whole balance on send
This commit is contained in:
parent
82c05588bc
commit
1d9b7d9698
1 changed files with 3 additions and 3 deletions
|
@ -617,7 +617,7 @@ impl Wallet {
|
||||||
let r_inst = self.instance.as_ref().read();
|
let r_inst = self.instance.as_ref().read();
|
||||||
let instance = r_inst.clone().unwrap();
|
let instance = r_inst.clone().unwrap();
|
||||||
let mut api = Owner::new(instance, None);
|
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),
|
Ok(s) => Ok(s.0),
|
||||||
Err(e) => Err(e)
|
Err(e) => Err(e)
|
||||||
}
|
}
|
||||||
|
@ -714,7 +714,7 @@ impl Wallet {
|
||||||
amount,
|
amount,
|
||||||
minimum_confirmations: config.min_confirmations,
|
minimum_confirmations: config.min_confirmations,
|
||||||
num_change_outputs: 1,
|
num_change_outputs: 1,
|
||||||
selection_strategy_is_use_all: true,
|
selection_strategy_is_use_all: false,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
};
|
};
|
||||||
let r_inst = self.instance.as_ref().read();
|
let r_inst = self.instance.as_ref().read();
|
||||||
|
@ -857,7 +857,7 @@ impl Wallet {
|
||||||
src_acct_name: None,
|
src_acct_name: None,
|
||||||
amount: slate.amount,
|
amount: slate.amount,
|
||||||
minimum_confirmations: config.min_confirmations,
|
minimum_confirmations: config.min_confirmations,
|
||||||
selection_strategy_is_use_all: true,
|
selection_strategy_is_use_all: false,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
};
|
};
|
||||||
let r_inst = self.instance.as_ref().read();
|
let r_inst = self.instance.as_ref().read();
|
||||||
|
|
Loading…
Reference in a new issue