diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-03-14 23:40:23 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-03-14 23:41:41 +0000 |
commit | a52366c1bfe783f8c2089afc3dac24a6a71325a4 (patch) | |
tree | 0cfdc3b0aacc2b0272af6bf759a7c009d1771ae5 /src/wallet/wallet2.cpp | |
parent | Merge pull request #5258 (diff) | |
download | monero-a52366c1bfe783f8c2089afc3dac24a6a71325a4.tar.xz |
wallet2: fix generation from json when restore height is not set
It was not recovering then, but creating a new random address
Diffstat (limited to '')
-rw-r--r-- | src/wallet/wallet2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 085e6075f..11bf7c487 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -470,7 +470,7 @@ std::pair<std::unique_ptr<tools::wallet2>, tools::password_container> generate_f GET_FIELD_FROM_JSON_RETURN_ON_ERROR(json, filename, std::string, String, true, std::string()); GET_FIELD_FROM_JSON_RETURN_ON_ERROR(json, scan_from_height, uint64_t, Uint64, false, 0); - const bool recover = field_scan_from_height_found; + const bool recover = true; GET_FIELD_FROM_JSON_RETURN_ON_ERROR(json, password, std::string, String, false, std::string()); |