Page MenuHomePhabricator

[test] allow passing test checkpoints to ContextualCheckBlockHeader
ClosedPublic

Authored by PiRK on Mar 30 2024, 20:58.

Details

Summary

This enables testing the checkpoints without having to hack a Config and a CChainParams.
It is an alternative approach to D15802 and unbreaks the address sanitizer build that was broken by that diff.

Test Plan

ninja all check-all

address sanitizer build

Diff Detail

Repository
rABC Bitcoin ABC
Branch
refs/heads/fix_initialization-order-fiasco2
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 28199
Build 55943: Build Diffbuild-diff · build-clang-tidy · lint-circular-dependencies · build-without-wallet · build-debug · build-clang
Build 55942: arc lint + arc unit

Event Timeline

while we are touching these lines, don't assert that the chainman is not a nullptr more than once. It was done inconsistently in this test, doing it once for the first call is enough.

PiRK published this revision for review.Mar 30 2024, 21:27
This revision is now accepted and ready to land.Mar 31 2024, 09:25