mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-05 10:12:48 +01:00
Merge #18923: wallet: Never schedule MaybeCompactWalletDB when -flushwallet is off
fa73493930refactor: Use C++11 range-based for loop (MarcoFalke)fa7b164d62wallet: Never schedule MaybeCompactWalletDB when -flushwallet is off (MarcoFalke)faf8401c19wallet: Pass unused args to StartWallets (MarcoFalke)fa6c186436gui tests: Limit life-time of dummy testing setup (MarcoFalke)fa28a61897test: Add smoke test to check that wallets are flushed by default (MarcoFalke) Pull request description: User-facing, this is a refactor. Internally, the scheduler does not have to call a mostly empty function every half a second. ACKs for top commit: jnewbery: utACKfa73493930meshcollider: utACKfa73493930ryanofsky: Code review ACKfa73493930. Just rebased since last review Tree-SHA512: 99e1fe1b2c22a3f4b19de3e566241d38693f4fd8d5a68ba1838d86740aa6c08e3325c11a072e30fd262a8861af4278bed52eb9374c85179b8f536477f528247c
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