rpc: Reject deprecated reserveChangeKey in fundrawtransaction

This commit is contained in:
MarcoFalke
2018-02-10 22:12:43 -05:00
parent 67447ba060
commit fa5f51830d
3 changed files with 10 additions and 1 deletions

View File

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