aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2013-12-24 09:41:48 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2013-12-24 09:43:05 +0100
commit086d7ec2b8c6ee352af820fe57908d43ec86f586 (patch)
treee33cd661f70d6dc1b1e13ec564254e6ee338d3eb
parent362755d01817891defcbae696d34f0ff8266a1d0 (diff)
parentd78f35a909aac7c4456cee24bad2125205288d16 (diff)
Merge pull request #3457
d78f35a Explicitly ensure that wallet is unlocked in `importprivkey` (Wladimir J. van der Laan)
-rw-r--r--src/rpcdump.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpcdump.cpp b/src/rpcdump.cpp
index 92f4c2c6dd..c801b284cb 100644
--- a/src/rpcdump.cpp
+++ b/src/rpcdump.cpp
@@ -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)