mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-03 09:56:38 -05:00
throw JSONRPCError(-5, "Invalid bitcoin address") instead.
This commit is contained in:
parent
279ab5e62f
commit
c1f74f152b
1 changed files with 1 additions and 1 deletions
2
rpc.cpp
2
rpc.cpp
|
@ -384,7 +384,7 @@ Value setaccount(const Array& params, bool fHelp)
|
||||||
uint160 hash160;
|
uint160 hash160;
|
||||||
bool isValid = AddressToHash160(strAddress, hash160);
|
bool isValid = AddressToHash160(strAddress, hash160);
|
||||||
if (!isValid)
|
if (!isValid)
|
||||||
throw runtime_error("provided address is not valid");
|
throw JSONRPCError(-5, "Invalid bitcoin address");
|
||||||
|
|
||||||
|
|
||||||
string strAccount;
|
string strAccount;
|
||||||
|
|
Loading…
Add table
Reference in a new issue