Skip to content
Permalink
Browse files

wallet2: fix generation from json when restore height is not set

It was not recovering then, but creating a new random address
  • Loading branch information...
moneromooo-monero committed Mar 14, 2019
1 parent 1d1a02e commit a52366c1bfe783f8c2089afc3dac24a6a71325a4
Showing with 1 addition and 1 deletion.
  1. +1 −1 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());

0 comments on commit a52366c

Please sign in to comment.
You can’t perform that action at this time.