Browse Source

Merge pull request #3457

d78f35a Explicitly ensure that wallet is unlocked in `importprivkey` (Wladimir J. van der Laan)
0.10
Wladimir J. van der Laan 11 years ago
parent
commit
086d7ec2b8
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 2
      src/rpcdump.cpp

2
src/rpcdump.cpp

@ -86,6 +86,8 @@ Value importprivkey(const Array& params, bool fHelp) @@ -86,6 +86,8 @@ Value importprivkey(const Array& params, bool fHelp)
+ HelpExampleRpc("importprivkey", "\"mykey\", \"testing\", false")
);
EnsureWalletIsUnlocked();
string strSecret = params[0].get_str();
string strLabel = "";
if (params.size() > 1)

Loading…
Cancel
Save