mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-27 05:13:25 +01:00
wallet2: fix generation from json when restore height is not set
It was not recovering then, but creating a new random address
This commit is contained in:
parent
1d1a02e9f9
commit
a52366c1bf
@ -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, filename, std::string, String, true, std::string());
|
||||||
|
|
||||||
GET_FIELD_FROM_JSON_RETURN_ON_ERROR(json, scan_from_height, uint64_t, Uint64, false, 0);
|
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());
|
GET_FIELD_FROM_JSON_RETURN_ON_ERROR(json, password, std::string, String, false, std::string());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user