rpc: Reject deprecated reserveChangeKey in fundrawtransaction

This commit is contained in:
MarcoFalke committed 2018-02-10 22:11:31 -05:00
1 parent 67447ba060
commit fa5f51830d
3 files changed
+10 -1

No files matched your search

@@ -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 #
############################################################