Page MenuHomePhabricator

[refactor] versionbits: make VersionBitsCache a full class
ClosedPublic

Authored by PiRK on Oct 12 2022, 15:05.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABCd41722812a7c: [refactor] versionbits: make VersionBitsCache a full class
Summary

Moves the VersionBits* functions to be methods of the cache class,
and makes the cache and its lock private to the class.

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

Depends on D12224

Test Plan

ninja all check-all

Diff Detail

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