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/simplewallet.cpp | |
| parent | fbc15de2cd57353bb6cf74b076d02d463c7aa3fa (diff) | |
| parent | 6dec001359df2e8e0a7d91aa1eda36a50e26476d (diff) | |
| download | monzero-core-e4e70b57cacd1e33ee6b1bee9d60e829e823725b.tar.gz monzero-core-e4e70b57cacd1e33ee6b1bee9d60e829e823725b.tar.xz monzero-core-e4e70b57cacd1e33ee6b1bee9d60e829e823725b.zip | |
Merge pull request #6130
6dec0013 simplewallet: fix restore height warning (selsta)
Diffstat (limited to 'src/simplewallet/simplewallet.cpp')
| -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(); } |
