diff options
author | stoffu <stoffu@protonmail.ch> | 2018-03-16 11:55:31 +0900 |
---|---|---|
committer | stoffu <stoffu@protonmail.ch> | 2018-03-16 11:55:31 +0900 |
commit | 6f54c910f7ea1ebb271dfdc8c6316a42e666af3c (patch) | |
tree | 7c738f4e90dfe4b0fe1e2f3404a1d3a39e8e4931 /src | |
parent | Merge pull request #3398 (diff) | |
download | monero-6f54c910f7ea1ebb271dfdc8c6316a42e666af3c.tar.xz |
simplewallet: fix restore height prompt that got disabled by #3175
Diffstat (limited to 'src')
-rw-r--r-- | src/simplewallet/simplewallet.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index 3668df7b9..f6a55ef95 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -2581,6 +2581,11 @@ 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_restoring && m_generate_from_json.empty()) + { + m_wallet->explicit_refresh_from_block_height(!command_line::is_arg_defaulted(vm, arg_restore_height)); + } if (!m_wallet->explicit_refresh_from_block_height() && m_restoring) { uint32_t version; |