Page MenuHomePhabricator

test: refactor: dedup `CBlockHeader` serialization
ClosedPublic

Authored by PiRK on Sep 30 2025, 13:15.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABCf08090597547: test: refactor: dedup `CBlockHeader` serialization
Summary

Note that we can't call .serialize() directly in
the .calc_sha256() method, as this could wrongly lead
to the serialization of the derived class (CBlock) if
called from an instance there.

This is a partial backport of core#32868
https://github.com/bitcoin/bitcoin/pull/32868/commits/f3c791d2e39133f33b04ebf790c307b0f63bb578
Depends on D18733

Test Plan

ninja check-functional

Diff Detail

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

Event Timeline

PiRK requested review of this revision.Sep 30 2025, 13:15
PiRK edited the summary of this revision. (Show Details)

refactor on dependency

This revision is now accepted and ready to land.Sep 30 2025, 17:51