Skip to content

Commit

Permalink
Merge pull request #3416
Browse files Browse the repository at this point in the history
6f54c91 simplewallet: fix restore height prompt that got disabled by #3175 (stoffu)
  • Loading branch information
fluffypony committed Mar 16, 2018
2 parents 432480f + 6f54c91 commit a14eabc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/simplewallet/simplewallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2920,6 +2920,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;
Expand Down

0 comments on commit a14eabc

Please sign in to comment.