Skip to content

Commit 2c63839

Browse files
committed
Dashify fundrawtransaction exception
Fixes test failure
1 parent f8ad2ff commit 2c63839

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

qa/rpc-tests/fundrawtransaction.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,9 @@ def run_test(self):
222222

223223
try:
224224
self.nodes[2].fundrawtransaction(rawtx, {'changeAddress': 'foobar'})
225-
raise AssertionError("Accepted invalid bitcoin address")
225+
raise AssertionError("Accepted invalid dash address")
226226
except JSONRPCException,e:
227-
assert("changeAddress must be a valid bitcoin address" in e.error['message'])
227+
assert("changeAddress must be a valid dash address" in e.error['message'])
228228

229229

230230

src/wallet/rpcwallet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2713,7 +2713,7 @@ UniValue fundrawtransaction(const UniValue& params, bool fHelp)
27132713
CBitcoinAddress address(options["changeAddress"].get_str());
27142714

27152715
if (!address.IsValid())
2716-
throw JSONRPCError(RPC_INVALID_PARAMETER, "changeAddress must be a valid bitcoin address");
2716+
throw JSONRPCError(RPC_INVALID_PARAMETER, "changeAddress must be a valid dash address");
27172717

27182718
changeAddress = address.Get();
27192719
}

0 commit comments

Comments
 (0)