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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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