Merge pull request #3457

d78f35a Explicitly ensure that wallet is unlocked in `importprivkey` (Wladimir J. van der Laan)
This commit is contained in:
Wladimir J. van der Laan committed 2013-12-24 09:43:05 +01:00
commit 086d7ec2b8
1 file changed
+2
+2
View File
@@ -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)