Skip to content

Commit

Permalink
Fix parameter count check for importpubkey.
Browse files Browse the repository at this point in the history
Github-Pull: bitcoin#13507
Rebased-From: 3f72d04
  • Loading branch information
kristapsk authored and fanquake committed Jun 25, 2018
1 parent cbd2f70 commit f7401c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wallet/rpcdump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ UniValue importpubkey(const JSONRPCRequest& request)
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(
"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"
Expand Down

0 comments on commit f7401c8

Please sign in to comment.