File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -300,11 +300,11 @@ static RPCHelpMan verifymessage()
300
300
301
301
switch (MessageVerify (strAddress, strSign, strMessage)) {
302
302
case MessageVerificationResult::ERR_INVALID_ADDRESS:
303
- throw JSONRPCError (RPC_TYPE_ERROR , " Invalid address" );
303
+ throw JSONRPCError (RPC_INVALID_ADDRESS_OR_KEY , " Invalid address" );
304
304
case MessageVerificationResult::ERR_ADDRESS_NO_KEY:
305
305
throw JSONRPCError (RPC_TYPE_ERROR, " Address does not refer to key" );
306
306
case MessageVerificationResult::ERR_MALFORMED_SIGNATURE:
307
- throw JSONRPCError (RPC_INVALID_ADDRESS_OR_KEY , " Malformed base64 encoding" );
307
+ throw JSONRPCError (RPC_TYPE_ERROR , " Malformed base64 encoding" );
308
308
case MessageVerificationResult::ERR_PUBKEY_NOT_RECOVERED:
309
309
case MessageVerificationResult::ERR_NOT_SIGNED:
310
310
return false ;
Original file line number Diff line number Diff line change @@ -602,7 +602,7 @@ static UniValue signmessage(const JSONRPCRequest& request)
602
602
603
603
CTxDestination dest = DecodeDestination (strAddress);
604
604
if (!IsValidDestination (dest)) {
605
- throw JSONRPCError (RPC_TYPE_ERROR , " Invalid address" );
605
+ throw JSONRPCError (RPC_INVALID_ADDRESS_OR_KEY , " Invalid address" );
606
606
}
607
607
608
608
const PKHash *pkhash = boost::get<PKHash>(&dest);
You can’t perform that action at this time.
0 commit comments