|
|
@ -3765,7 +3765,7 @@ void CWallet::postInitProcess(CScheduler& scheduler) |
|
|
|
|
|
|
|
|
|
|
|
// Run a thread to flush wallet periodically
|
|
|
|
// Run a thread to flush wallet periodically
|
|
|
|
if (!CWallet::fFlushScheduled.exchange(true)) { |
|
|
|
if (!CWallet::fFlushScheduled.exchange(true)) { |
|
|
|
scheduler.scheduleEvery(MaybeFlushWalletDB, 500); |
|
|
|
scheduler.scheduleEvery(MaybeCompactWalletDB, 500); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|