File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -458,7 +458,7 @@ UniValue signmessage(const UniValue& params, bool fHelp)
458
458
459
459
CBitcoinAddress addr (strAddress);
460
460
if (!addr.IsValid ())
461
- throw JSONRPCError (RPC_TYPE_ERROR , " Invalid address" );
461
+ throw JSONRPCError (RPC_INVALID_ADDRESS_OR_KEY , " Invalid address" );
462
462
463
463
CKeyID keyID;
464
464
if (!addr.GetKeyID (keyID))
@@ -495,7 +495,7 @@ UniValue verifymessage(const UniValue& params, bool fHelp)
495
495
496
496
CBitcoinAddress addr (strAddress);
497
497
if (!addr.IsValid ())
498
- throw JSONRPCError (RPC_TYPE_ERROR , " Invalid address" );
498
+ throw JSONRPCError (RPC_INVALID_ADDRESS_OR_KEY , " Invalid address" );
499
499
500
500
CKeyID keyID;
501
501
if (!addr.GetKeyID (keyID))
@@ -505,7 +505,7 @@ UniValue verifymessage(const UniValue& params, bool fHelp)
505
505
vector<unsigned char > vchSig = DecodeBase64 (strSign.c_str (), &fInvalid );
506
506
507
507
if (fInvalid )
508
- throw JSONRPCError (RPC_INVALID_ADDRESS_OR_KEY , " Malformed base64 encoding" );
508
+ throw JSONRPCError (RPC_TYPE_ERROR , " Malformed base64 encoding" );
509
509
510
510
CDataStream ss (SER_GETHASH, 0 );
511
511
ss << strMessageMagic;
You can’t perform that action at this time.
0 commit comments