HomePhabricator

wallet: Never schedule MaybeCompactWalletDB when -flushwallet is off

Description

wallet: Never schedule MaybeCompactWalletDB when -flushwallet is off

Summary:

User-facing, this is a refactor. Internally, the scheduler does not have
to call a mostly empty function every half a second.

Backport of core PR18923.

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D8638

Details

Provenance
MarcoFalke <falke.marco@gmail.com>Authored on May 11 2020, 16:19
FabienCommitted on Dec 9 2020, 17:35
FabienPushed on Dec 9 2020, 17:37
Reviewer
Restricted Project
Differential Revision
D8638: wallet: Never schedule MaybeCompactWalletDB when -flushwallet is off
Parents
rABC3d4316d11fae: test: Avoid accessing free'd memory in validation_chainstatemanager_tests
Branches
Unknown
Tags
Unknown