Merge pull request #6130

6dec0013 simplewallet: fix restore height warning (selsta)
This commit is contained in:
Alexander Blair 2020-01-16 17:39:03 -08:00
commit e4e70b57ca
No known key found for this signature in database
GPG Key ID: C64552D877C32479
1 changed files with 1 additions and 1 deletions

View File

@ -4346,7 +4346,7 @@ bool simple_wallet::init(const boost::program_options::variables_map& vm)
if (std::cin.eof() || !command_line::is_yes(confirm))
CHECK_AND_ASSERT_MES(false, false, tr("account creation aborted"));
m_wallet->set_refresh_from_block_height(m_wallet->estimate_blockchain_height());
m_wallet->set_refresh_from_block_height(m_wallet->estimate_blockchain_height() > 0 ? m_wallet->estimate_blockchain_height() - 1 : 0);
m_wallet->explicit_refresh_from_block_height(true);
m_restore_height = m_wallet->get_refresh_from_block_height();
}