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/simplewallet/simplewallet.cpp | |
| parent | 5f09d6c8333b0b0d07252dc157b9e794f6278662 (diff) | |
| download | monzero-core-3be98036e7c11131226aa21dca63d29055507625.tar.gz monzero-core-3be98036e7c11131226aa21dca63d29055507625.tar.xz monzero-core-3be98036e7c11131226aa21dca63d29055507625.zip | |
wallet-cli: Do not ask for scan_from_height if it explicitly is set to zero.
Fixes #3080
Diffstat (limited to 'src/simplewallet/simplewallet.cpp')
| -rw-r--r-- | src/simplewallet/simplewallet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index b9a3e45b4..4fda2a99f 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -2413,7 +2413,7 @@ bool simple_wallet::init(const boost::program_options::variables_map& vm) r = new_wallet(vm, m_recovery_key, m_restore_deterministic_wallet, m_non_deterministic, old_language); CHECK_AND_ASSERT_MES(r, false, tr("account creation failed")); } - if (!m_restore_height && m_restoring) + if (!m_wallet->explicit_refresh_from_block_height() && m_restoring) { uint32_t version; bool connected = try_connect_to_daemon(false, &version); |
