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
-4
View File
@@ -389,9 +389,6 @@ pub fn parse_send_args(args: &ArgMatches) -> Result<command::SendArgs, ParseErro
// fluff
let fluff = args.is_present("fluff");
// max_outputs
let max_outputs = 500;
Ok(command::SendArgs {
amount: amount,
message: message,
@@ -402,7 +399,6 @@ pub fn parse_send_args(args: &ArgMatches) -> Result<command::SendArgs, ParseErro
dest: dest.to_owned(),
change_outputs: change_outputs,
fluff: fluff,
max_outputs: max_outputs,
})
}