Don't allow same transaction to be received multiple times (#2124)

* don't allow same transaction to be received multiple times

* issues in other tests uncovered and fixed

* allow tx_hex update function to operate without an account being specified, to allow finalize_tx function to work without an account being specified

* rustfmt

* fix to retrieve_txs

* rustfmt
This commit is contained in:
Yeastplume
2018-12-11 17:18:31 +00:00
committed by GitHub
parent c5e771cbf0
commit fb11dd3f4e
7 changed files with 35 additions and 16 deletions
+4 -1
View File
@@ -293,7 +293,10 @@ mod wallet_tests {
"-g",
"Thanks, Yeast!",
];
execute_command(&app, test_dir, "wallet2", &client2, arg_vec)?;
execute_command(&app, test_dir, "wallet2", &client2, arg_vec.clone())?;
// shouldn't be allowed to receive twice
assert!(execute_command(&app, test_dir, "wallet2", &client2, arg_vec).is_err());
let arg_vec = vec![
"grin",