From f3a45f26c4b5ab0cfb5788fda0e2766caf86b46f Mon Sep 17 00:00:00 2001 From: m2049r Date: Thu, 16 Sep 2021 08:23:36 +0200 Subject: [PATCH] enable async refresh --- src/wallet/api/wallet.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wallet/api/wallet.cpp b/src/wallet/api/wallet.cpp index a5d742aab..a0f147b96 100644 --- a/src/wallet/api/wallet.cpp +++ b/src/wallet/api/wallet.cpp @@ -435,6 +435,10 @@ WalletImpl::WalletImpl(NetworkType nettype, uint64_t kdf_rounds) m_refreshIntervalMillis = DEFAULT_REFRESH_INTERVAL_MILLIS; + m_refreshThread = boost::thread([this] () { + this->refreshThreadFunc(); + }); + } WalletImpl::~WalletImpl()