|
|
@ -3549,6 +3549,8 @@ bool CWallet::InitLoadWallet() |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
std::atomic<bool> CWallet::fFlushThreadRunning(false); |
|
|
|
|
|
|
|
|
|
|
|
void CWallet::postInitProcess(boost::thread_group& threadGroup) |
|
|
|
void CWallet::postInitProcess(boost::thread_group& threadGroup) |
|
|
|
{ |
|
|
|
{ |
|
|
|
// Add wallet transactions that aren't already in a block to mempool
|
|
|
|
// Add wallet transactions that aren't already in a block to mempool
|
|
|
@ -3556,7 +3558,9 @@ void CWallet::postInitProcess(boost::thread_group& threadGroup) |
|
|
|
ReacceptWalletTransactions(); |
|
|
|
ReacceptWalletTransactions(); |
|
|
|
|
|
|
|
|
|
|
|
// Run a thread to flush wallet periodically
|
|
|
|
// Run a thread to flush wallet periodically
|
|
|
|
threadGroup.create_thread(boost::bind(&ThreadFlushWalletDB, boost::ref(this->strWalletFile))); |
|
|
|
if (!CWallet::fFlushThreadRunning.exchange(true)) { |
|
|
|
|
|
|
|
threadGroup.create_thread(ThreadFlushWalletDB); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
bool CWallet::ParameterInteraction() |
|
|
|
bool CWallet::ParameterInteraction() |
|
|
|