aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet/simplewallet.cpp
diff options
context:
space:
mode:
authorAlexander Blair <snipa@jagtech.io>2020-01-16 17:39:03 -0800
committerAlexander Blair <snipa@jagtech.io>2020-01-16 17:39:03 -0800
commite4e70b57cacd1e33ee6b1bee9d60e829e823725b (patch)
tree1d4f6181e98871be5a97f3b1078b1717a1e58b8d /src/simplewallet/simplewallet.cpp
parentMerge pull request #6125 (diff)
parentsimplewallet: fix restore height warning (diff)
downloadmonero-e4e70b57cacd1e33ee6b1bee9d60e829e823725b.tar.xz
Merge pull request #6130
6dec0013 simplewallet: fix restore height warning (selsta)
Diffstat (limited to 'src/simplewallet/simplewallet.cpp')
-rw-r--r--src/simplewallet/simplewallet.cpp2
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();
}