diff options
author | Maximilian Lupke <maxlupke@gmail.com> | 2018-01-23 15:42:11 +0100 |
---|---|---|
committer | Maximilian Lupke <maxlupke@gmail.com> | 2018-01-24 18:01:08 +0100 |
commit | 3be98036e7c11131226aa21dca63d29055507625 (patch) | |
tree | 974b54fa427faed45fffe044e2c94acdb0363e73 /src/wallet/wallet2.cpp | |
parent | Merge pull request #3115 (diff) | |
download | monero-3be98036e7c11131226aa21dca63d29055507625.tar.xz |
wallet-cli: Do not ask for scan_from_height if it explicitly is set to zero.
Fixes #3080
Diffstat (limited to 'src/wallet/wallet2.cpp')
-rw-r--r-- | src/wallet/wallet2.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 2af41f588..345aa09fe 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -361,6 +361,7 @@ std::unique_ptr<tools::wallet2> generate_from_json(const std::string& json_file, wallet.reset(make_basic(vm, opts, password_prompter).release()); wallet->set_refresh_from_block_height(field_scan_from_height); + wallet->explicit_refresh_from_block_height(field_scan_from_height_found); try { @@ -605,6 +606,7 @@ wallet2::wallet2(bool testnet, bool restricted): m_refresh_type(RefreshOptimizeCoinbase), m_auto_refresh(true), m_refresh_from_block_height(0), + m_explicit_refresh_from_block_height(true), m_confirm_missing_payment_id(true), m_ask_password(true), m_min_output_count(0), |