Merge pull request #5035

53fcd159 simplewallet: don't subtract 1 to estimate blockchain height (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2019-01-16 21:40:56 +02:00
commit 8e4c0de46a
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD

View File

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