mirror of
				https://git.wownero.com/wownero/wownero.git
				synced 2024-08-15 01:03:23 +00:00 
			
		
		
		
	enable refresh thread
This commit is contained in:
		
							parent
							
								
									269fd51d34
								
							
						
					
					
						commit
						aa19aa8fc3
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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);
 | 
			
		||||
        if(rescan)
 | 
			
		||||
            m_wallet->rescan_blockchain(false);
 | 
			
		||||
        m_wallet->refresh(trustedDaemon());
 | 
			
		||||
        m_wallet->refresh(true);
 | 
			
		||||
        if (!m_synchronized) {
 | 
			
		||||
            m_synchronized = true;
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue