Dashify fundrawtransaction exception

Fixes test failure
This commit is contained in:
Alexander Block 2017-12-20 15:23:39 +01:00
parent f8ad2ffa79
commit 2c63839f23
2 changed files with 3 additions and 3 deletions

View File

@ -222,9 +222,9 @@ class RawTransactionsTest(BitcoinTestFramework):
try:
self.nodes[2].fundrawtransaction(rawtx, {'changeAddress': 'foobar'})
raise AssertionError("Accepted invalid bitcoin address")
raise AssertionError("Accepted invalid dash address")
except JSONRPCException,e:
assert("changeAddress must be a valid bitcoin address" in e.error['message'])
assert("changeAddress must be a valid dash address" in e.error['message'])

View File

@ -2713,7 +2713,7 @@ UniValue fundrawtransaction(const UniValue& params, bool fHelp)
CBitcoinAddress address(options["changeAddress"].get_str());
if (!address.IsValid())
throw JSONRPCError(RPC_INVALID_PARAMETER, "changeAddress must be a valid bitcoin address");
throw JSONRPCError(RPC_INVALID_PARAMETER, "changeAddress must be a valid dash address");
changeAddress = address.Get();
}