mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-03-12 13:41:52 +00:00
Fix parameter count check for importpubkey.
Github-Pull: #13507 Rebased-From: 3f72d04
This commit is contained in:
parent
cbd2f70b75
commit
f7401c86b9
@ -432,7 +432,7 @@ UniValue importpubkey(const JSONRPCRequest& request)
|
|||||||
return NullUniValue;
|
return NullUniValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (request.fHelp || request.params.size() < 1 || request.params.size() > 4)
|
if (request.fHelp || request.params.size() < 1 || request.params.size() > 3)
|
||||||
throw std::runtime_error(
|
throw std::runtime_error(
|
||||||
"importpubkey \"pubkey\" ( \"label\" rescan )\n"
|
"importpubkey \"pubkey\" ( \"label\" rescan )\n"
|
||||||
"\nAdds a public key (in hex) that can be watched as if it were in your wallet but cannot be used to spend. Requires a new wallet backup.\n"
|
"\nAdds a public key (in hex) that can be watched as if it were in your wallet but cannot be used to spend. Requires a new wallet backup.\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user