Page MenuHomePhabricator

[refactor] Add versionbits deployments to deploymentstatus.h
ClosedPublic

Authored by PiRK on Oct 12 2022, 13:29.

Details

Summary

Adds support for versionbits deployments to DeploymentEnabled,
DeploymentActiveAfter and DeploymentActiveAt. Also moves versionbitscache
from validation to deploymentstatus.

This is a partial backport of core#19438
https://github.com/bitcoin/bitcoin/pull/19438/commits/de55304f6e7a8b607e6b3fc7436de50910747b0c

Depends on D12220

Test Plan

ninja all check-all

Event Timeline

PiRK requested review of this revision.Oct 12 2022, 13:29
Fabien requested changes to this revision.Oct 12 2022, 15:46
Fabien added a subscriber: Fabien.
Fabien added inline comments.
src/deploymentstatus.cpp
12

Layout

src/validation.h
17

What caused this to be required now ?

This revision now requires changes to proceed.Oct 12 2022, 15:46
src/validation.h
17

It previously got included indirectly via versionbits.h.
The forward declaration is not enough, because CChain is actually used in several places in validation.h.

I will add a note about this and remove the useless forward declartion.

fix comment layout in deploymentstatus.cpp and remove forward declaration of CChain in validation.h (made uneccessary by including chain.h which was previously included indirectly via versionbits.h)

This revision is now accepted and ready to land.Oct 13 2022, 08:03