From 66c2b5d8adab8ad038ead6962447455042b391f9 Mon Sep 17 00:00:00 2001 From: dsc Date: Wed, 3 Jan 2024 11:33:51 +0200 Subject: [PATCH] enable refresh thread --- src/wallet/api/wallet.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/wallet/api/wallet.cpp b/src/wallet/api/wallet.cpp index 37dda2f2b..823f122c2 100644 --- a/src/wallet/api/wallet.cpp +++ b/src/wallet/api/wallet.cpp @@ -434,6 +434,9 @@ WalletImpl::WalletImpl(NetworkType nettype, uint64_t kdf_rounds) m_refreshIntervalMillis = DEFAULT_REFRESH_INTERVAL_MILLIS; + m_refreshThread = boost::thread([this] () { + this->refreshThreadFunc(); + }); } WalletImpl::~WalletImpl() @@ -2598,7 +2601,7 @@ void WalletImpl::doRefresh() LOG_PRINT_L3(__FUNCTION__ << ": doRefresh, rescan = "<rescan_blockchain(false); - m_wallet->refresh(trustedDaemon()); + m_wallet->refresh(true); if (!m_synchronized) { m_synchronized = true; }