fix: wallet coin selection respects max_block_weight (#2546)

* fix #2510: wallet coin selection respects max_block_weight

Deprecate "soft" max_outputs limit and introduce "hard" max_outputs
limit based on max_block_weight.

* Fix tests
This commit is contained in:
Ivan Sorokin
2019-02-13 00:06:25 +01:00
committed by Ignotus Peverell
parent 1d0c04cf0b
commit aa4f44b79a
17 changed files with 39 additions and 82 deletions
-3
View File
@@ -205,7 +205,6 @@ pub struct SendArgs {
pub dest: String,
pub change_outputs: usize,
pub fluff: bool,
pub max_outputs: usize,
}
pub fn send(
@@ -223,7 +222,6 @@ pub fn send(
None,
args.amount,
args.minimum_confirmations,
args.max_outputs,
args.change_outputs,
strategy == "all",
)
@@ -237,7 +235,6 @@ pub fn send(
None,
args.amount,
args.minimum_confirmations,
args.max_outputs,
args.change_outputs,
args.selection_strategy == "all",
args.message.clone(),