aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet/simplewallet.cpp
diff options
context:
space:
mode:
authorAlexander Blair <snipa@jagtech.io>2020-02-28 19:46:33 -0800
committerAlexander Blair <snipa@jagtech.io>2020-02-28 19:46:33 -0800
commit2deb02f81dbeb83878b1cbe7c870172876237cf9 (patch)
treee141237ad76124c28e90d9e7200a328a994c5709 /src/simplewallet/simplewallet.cpp
parent6742c4acb7d20cdbe50601ce857ab6b632d7bb0f (diff)
parentd93e1dffa9c4f39888a4f766687f599855b86e8f (diff)
downloadmonzero-core-2deb02f81dbeb83878b1cbe7c870172876237cf9.tar.gz
monzero-core-2deb02f81dbeb83878b1cbe7c870172876237cf9.tar.xz
monzero-core-2deb02f81dbeb83878b1cbe7c870172876237cf9.zip
Merge pull request #6224
d93e1dff simplewallet: warn on refresh if refresh-from-block-height seems off (moneromooo-monero)
Diffstat (limited to 'src/simplewallet/simplewallet.cpp')
-rw-r--r--src/simplewallet/simplewallet.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp
index ba7fba293..b7f89c720 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -5584,6 +5584,14 @@ boost::optional<epee::wipeable_string> simple_wallet::on_device_passphrase_reque
//----------------------------------------------------------------------------------------------------
void simple_wallet::on_refresh_finished(uint64_t start_height, uint64_t fetched_blocks, bool is_init, bool received_money)
{
+ const uint64_t rfbh = m_wallet->get_refresh_from_block_height();
+ std::string err;
+ const uint64_t dh = m_wallet->get_daemon_blockchain_height(err);
+ if (err.empty() && rfbh > dh)
+ {
+ message_writer(console_color_yellow, false) << tr("The wallet's refresh-from-block-height setting is higher than the daemon's height: this may mean your wallet will skip over transactions");
+ }
+
// Key image sync after the first refresh
if (!m_wallet->get_account().get_device().has_tx_cold_sign() || m_wallet->get_account().get_device().has_ki_live_refresh()) {
return;