mirror of
https://codeberg.org/nahuhh/wownero
synced 2026-03-04 21:57:40 -05:00
enable refresh thread
This commit is contained in:
@@ -434,6 +434,9 @@ WalletImpl::WalletImpl(NetworkType nettype, uint64_t kdf_rounds)
|
|||||||
|
|
||||||
m_refreshIntervalMillis = DEFAULT_REFRESH_INTERVAL_MILLIS;
|
m_refreshIntervalMillis = DEFAULT_REFRESH_INTERVAL_MILLIS;
|
||||||
|
|
||||||
|
m_refreshThread = boost::thread([this] () {
|
||||||
|
this->refreshThreadFunc();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
WalletImpl::~WalletImpl()
|
WalletImpl::~WalletImpl()
|
||||||
@@ -2598,7 +2601,7 @@ void WalletImpl::doRefresh()
|
|||||||
LOG_PRINT_L3(__FUNCTION__ << ": doRefresh, rescan = "<<rescan);
|
LOG_PRINT_L3(__FUNCTION__ << ": doRefresh, rescan = "<<rescan);
|
||||||
if(rescan)
|
if(rescan)
|
||||||
m_wallet->rescan_blockchain(false);
|
m_wallet->rescan_blockchain(false);
|
||||||
m_wallet->refresh(trustedDaemon());
|
m_wallet->refresh(true);
|
||||||
if (!m_synchronized) {
|
if (!m_synchronized) {
|
||||||
m_synchronized = true;
|
m_synchronized = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user