diff options
| author | Wladimir J. van der Laan <[email protected]> | 2013-12-24 09:41:48 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2013-12-24 09:43:05 +0100 |
| commit | 086d7ec2b8c6ee352af820fe57908d43ec86f586 (patch) | |
| tree | e33cd661f70d6dc1b1e13ec564254e6ee338d3eb /src/rpcdump.cpp | |
| parent | Merge pull request #3427 (diff) | |
| parent | Explicitly ensure that wallet is unlocked in `importprivkey` (diff) | |
| download | discoin-086d7ec2b8c6ee352af820fe57908d43ec86f586.tar.xz discoin-086d7ec2b8c6ee352af820fe57908d43ec86f586.zip | |
Merge pull request #3457
d78f35a Explicitly ensure that wallet is unlocked in `importprivkey` (Wladimir J. van der Laan)
Diffstat (limited to 'src/rpcdump.cpp')
| -rw-r--r-- | src/rpcdump.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpcdump.cpp b/src/rpcdump.cpp index 92f4c2c6d..c801b284c 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) |