mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-05 18:23:03 +01:00
wallet: Never schedule MaybeCompactWalletDB when -flushwallet is off
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user