HomePhabricator

refactoring: FlushStateToDisk -> CChainState

Description

refactoring: FlushStateToDisk -> CChainState

Summary:
Also renames global methods for clarity:

  • ::FlushStateToDisk() -> CChainState::ForceFlushStateToDisk()
    • This performs an unconditional flush.
  • ::PruneAndFlush() -> CChainState::PruneAndFlush()

This is a partial backport of Core PR15976 : https://github.com/bitcoin/bitcoin/pull/15976/commits/3ccbc376dd313fb7666471f24f6d9370914d00f3

Depends on D6001

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, jasonbcox

Reviewed By: #bitcoin_abc, jasonbcox

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

Details

Provenance
James O'Beirne <james.obeirne@gmail.com>Authored on Mar 27 2019, 16:07
deadalnixCommitted on May 7 2020, 20:14
deadalnixPushed on May 7 2020, 20:15
Reviewer
Restricted Project
Differential Revision
D6002: refactoring: FlushStateToDisk -> CChainState
Parents
rABC4f8d6e19114b: Added some release notes
Branches
Unknown
Tags
Unknown