Page MenuHomePhabricator

move-only: make the CChainState interface public
ClosedPublic

Authored by deadalnix on May 7 2020, 17:16.

Details

Summary

along with DisconnectResult, and CBlockIndexWorkComparator.

The CChainState interface needs to be known to the rest of the system because
many global functions will move to CChainState methods. This is to allow
other parts of the system to be parameterized per chainstate instance
instead of assuming a single global.

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

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.

jasonbcox added a subscriber: jasonbcox.
jasonbcox added inline comments.
src/validation.h
743 ↗(On Diff #19801)

Nit: This is a good opportunity to shuffle this further down to match Core better.

This revision is now accepted and ready to land.May 7 2020, 18:30