diff options
| author | selsta <selsta@sent.at> | 2019-11-14 01:37:03 +0100 |
|---|---|---|
| committer | selsta <selsta@sent.at> | 2019-11-14 03:00:20 +0100 |
| commit | 6dec001359df2e8e0a7d91aa1eda36a50e26476d (patch) | |
| tree | c743a7779565e0532828065c691585e140fdd9a8 | |
| parent | a48ef0a65afd2d89b9a81479f587b5b516a31c9c (diff) | |
| download | monzero-core-6dec001359df2e8e0a7d91aa1eda36a50e26476d.tar.gz monzero-core-6dec001359df2e8e0a7d91aa1eda36a50e26476d.tar.xz monzero-core-6dec001359df2e8e0a7d91aa1eda36a50e26476d.zip | |
simplewallet: fix restore height warning
| -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 ea8f6f2f5..ad8247728 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -4356,7 +4356,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(); } |
