diff options
author | MarcoFalke <falke.marco@gmail.com> | 2018-02-10 22:12:43 -0500 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2018-02-10 22:11:31 -0500 |
commit | fa5f51830d2649cace2fc827084093019497c151 (patch) | |
tree | 8a1aabc02312abfdd013b8c9fc983c3011ef05d7 /test/functional | |
parent | 67447ba06057b8e83f962c82491d2fe6c5211f50 (diff) | |
download | bitcoin-fa5f51830d2649cace2fc827084093019497c151.tar.xz |
rpc: Reject deprecated reserveChangeKey in fundrawtransaction
Diffstat (limited to 'test/functional')
-rwxr-xr-x | test/functional/rpc_fundrawtransaction.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/functional/rpc_fundrawtransaction.py b/test/functional/rpc_fundrawtransaction.py index 6b9c9c15b7..4d3be18516 100755 --- a/test/functional/rpc_fundrawtransaction.py +++ b/test/functional/rpc_fundrawtransaction.py @@ -181,6 +181,9 @@ class RawTransactionsTest(BitcoinTestFramework): assert_raises_rpc_error(-3, "Unexpected key foo", self.nodes[2].fundrawtransaction, rawtx, {'foo':'bar'}) + # reserveChangeKey was deprecated and is now removed + assert_raises_rpc_error(-3, "Unexpected key reserveChangeKey", lambda: self.nodes[2].fundrawtransaction(hexstring=rawtx, options={'reserveChangeKey': True})) + ############################################################ # test a fundrawtransaction with an invalid change address # ############################################################ |