diff options
author | Kristaps Kaupe <kristaps@blogiem.lv> | 2018-06-20 00:34:38 +0300 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2018-06-26 07:58:01 +0800 |
commit | f7401c86b9c9c58cfe57c2a49d3b4e00f80ded4a (patch) | |
tree | 818aad21b939d50626aea42fdc01bf6c8b38518c /src | |
parent | cbd2f70b75016bbadeb212c823b5c1ece95d5241 (diff) | |
download | bitcoin-f7401c86b9c9c58cfe57c2a49d3b4e00f80ded4a.tar.xz |
Fix parameter count check for importpubkey.
Github-Pull: #13507
Rebased-From: 3f72d04
Diffstat (limited to 'src')
-rw-r--r-- | src/wallet/rpcdump.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/rpcdump.cpp b/src/wallet/rpcdump.cpp index 03fb824e7a..0468996ef5 100644 --- a/src/wallet/rpcdump.cpp +++ b/src/wallet/rpcdump.cpp @@ -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" |