From 639313e2279441f5ce7f301cea9eb928c9055093 Mon Sep 17 00:00:00 2001 From: woodser Date: Tue, 20 Aug 2019 19:25:04 -0400 Subject: [PATCH] only set refresh height if is_connected --- src/wallet/monero_wallet.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wallet/monero_wallet.cpp b/src/wallet/monero_wallet.cpp index 6192d40..a1f3701 100644 --- a/src/wallet/monero_wallet.cpp +++ b/src/wallet/monero_wallet.cpp @@ -836,7 +836,7 @@ namespace monero { crypto::secret_key secret_key; wallet->m_w2->generate(path, password, secret_key, false, false); wallet->init_common(); - wallet->m_w2->set_refresh_from_block_height(wallet->get_daemon_height()); // TODO: necessary? test + if (wallet->is_connected()) wallet->m_w2->set_refresh_from_block_height(wallet->get_daemon_height()); // TODO: necessary? test return wallet; } @@ -3014,6 +3014,7 @@ namespace monero { m_w2_listener->on_sync_start(sync_start_height); monero_sync_result result; m_w2->refresh(m_w2->is_trusted_daemon(), sync_start_height, result.m_num_blocks_fetched, result.m_received_money, true); + m_w2->find_and_save_rings(false); if (!m_is_synced) m_is_synced = true; m_w2_listener->on_sync_end(); return result;