From aa19aa8fc3480f34473f48dcdf7c32f3db3a22a1 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 6306ea76f..331089c39 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() @@ -2585,7 +2588,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; }