[wallet] CreateTransaction: simplify change address check

This commit is contained in:
Sjors Provoost
2019-10-23 15:11:25 +02:00
parent 5efc25f963
commit 709f8685ac
2 changed files with 3 additions and 10 deletions

View File

@@ -504,7 +504,7 @@ class RawTransactionsTest(BitcoinTestFramework):
rawtx = self.nodes[1].createrawtransaction(inputs, outputs)
# fund a transaction that requires a new key for the change output
# creating the key must be impossible because the wallet is locked
assert_raises_rpc_error(-4, "Keypool ran out, please call keypoolrefill first", self.nodes[1].fundrawtransaction, rawtx)
assert_raises_rpc_error(-4, "Can't generate a change-address key. Please call keypoolrefill first.", self.nodes[1].fundrawtransaction, rawtx)
# Refill the keypool.
self.nodes[1].walletpassphrase("test", 100)