wallet: Never schedule MaybeCompactWalletDB when -flushwallet is off

This commit is contained in:
MarcoFalke
2020-05-11 17:49:05 +02:00
parent faf8401c19
commit fa7b164d62
2 changed files with 4 additions and 4 deletions

View File

@@ -952,9 +952,6 @@ void MaybeCompactWalletDB()
if (fOneThread.exchange(true)) {
return;
}
if (!gArgs.GetBoolArg("-flushwallet", DEFAULT_FLUSHWALLET)) {
return;
}
for (const std::shared_ptr<CWallet>& pwallet : GetWallets()) {
WalletDatabase& dbh = pwallet->GetDBHandle();