aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKristaps Kaupe <kristaps@blogiem.lv>2018-06-20 00:34:38 +0300
committerKristaps Kaupe <kristaps@blogiem.lv>2018-06-20 00:34:38 +0300
commit3f72d04e29caf247a3fee92f86fe0d250d578914 (patch)
tree184ceaca713d1c8d94f1bb1283f4ad4b9f78e84d /src
parent3f398d7a17f136cd4a67998406ca41a124ae2966 (diff)
downloadbitcoin-3f72d04e29caf247a3fee92f86fe0d250d578914.tar.xz
Fix parameter count check for importpubkey.
Diffstat (limited to 'src')
-rw-r--r--src/wallet/rpcdump.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/rpcdump.cpp b/src/wallet/rpcdump.cpp
index d09af1dbd1..882ddbbe4e 100644
--- a/src/wallet/rpcdump.cpp
+++ b/src/wallet/rpcdump.cpp
@@ -441,7 +441,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"