Page MenuHomePhabricator

refactoring: FlushStateToDisk -> CChainState
ClosedPublic

Authored by deadalnix on May 7 2020, 18:55.

Details

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

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

[Bot Message]
One or more PR numbers were detected in the summary.
Links to those PRs have been inserted into the summary for reference.

This revision is now accepted and ready to land.May 7 2020, 19:27