Skip to content

Commit 086d7ec

Browse files
committed
Merge pull request #3457
d78f35a Explicitly ensure that wallet is unlocked in `importprivkey` (Wladimir J. van der Laan)
2 parents 362755d + d78f35a commit 086d7ec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/rpcdump.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ Value importprivkey(const Array& params, bool fHelp)
8686
+ HelpExampleRpc("importprivkey", "\"mykey\", \"testing\", false")
8787
);
8888

89+
EnsureWalletIsUnlocked();
90+
8991
string strSecret = params[0].get_str();
9092
string strLabel = "";
9193
if (params.size() > 1)

0 commit comments

Comments
 (0)