Tx (change) output splitter (#1369)

* wip - split change into many outputs for testing

* rustfmt

* add change_outputs param to wallet send
default to 1

* commit

* rustfmt

* cleanup

* fixup servers tests
This commit is contained in:
Antioch Peverell
2018-08-18 22:38:48 +01:00
committed by GitHub
parent c05c5e21ea
commit 25e03aadef
11 changed files with 102 additions and 37 deletions
+3
View File
@@ -332,7 +332,9 @@ impl LocalServerContainer {
.expect("Failed to derive keychain from seed file and passphrase.");
let client = HTTPWalletClient::new(&config.check_node_api_http_addr);
let max_outputs = 500;
let change_outputs = 1;
let mut wallet = FileWallet::new(config.clone(), "", client)
.unwrap_or_else(|e| panic!("Error creating wallet: {:?} Config: {:?}", e, config));
@@ -344,6 +346,7 @@ impl LocalServerContainer {
minimum_confirmations,
dest,
max_outputs,
change_outputs,
selection_strategy == "all",
);
match result {