diff options
author | Alexander Blair <snipa@jagtech.io> | 2020-01-16 17:39:03 -0800 |
---|---|---|
committer | Alexander Blair <snipa@jagtech.io> | 2020-01-16 17:39:03 -0800 |
commit | e4e70b57cacd1e33ee6b1bee9d60e829e823725b (patch) | |
tree | 1d4f6181e98871be5a97f3b1078b1717a1e58b8d /src/simplewallet | |
parent | Merge pull request #6125 (diff) | |
parent | simplewallet: fix restore height warning (diff) | |
download | monero-e4e70b57cacd1e33ee6b1bee9d60e829e823725b.tar.xz |
Merge pull request #6130
6dec0013 simplewallet: fix restore height warning (selsta)
Diffstat (limited to 'src/simplewallet')
-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 a35ee40ae..87bbf62d3 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -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(); } |