Skip to content

Commit 3f72d04

Browse files
committed
Fix parameter count check for importpubkey.
1 parent 3f398d7 commit 3f72d04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wallet/rpcdump.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ UniValue importpubkey(const JSONRPCRequest& request)
441441
return NullUniValue;
442442
}
443443

444-
if (request.fHelp || request.params.size() < 1 || request.params.size() > 4)
444+
if (request.fHelp || request.params.size() < 1 || request.params.size() > 3)
445445
throw std::runtime_error(
446446
"importpubkey \"pubkey\" ( \"label\" rescan )\n"
447447
"\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"

0 commit comments

Comments
 (0)