HomePhabricator

test: rename CBlockHeader `.rehash()`/`.sha256` -> `.hash_int` for consistency

Description

test: rename CBlockHeader .rehash()/.sha256 -> .hash_int for consistency

Summary:
Note that we unfortunately can't use a scripted diff here, as the
sha256 symbol is also used for other instances (e.g. as function
in hashlib, or in the UTXO class in p2p_segwit.py).

This is a partial backport of core#32868
https://github.com/bitcoin/bitcoin/pull/32868/commits/23be0ec2f074516a1177cda620a20e4c3ef1b28d

Depends on D18739

Test Plan:
ninja check-functional-extended
chronik-client-integration-tests
build-chronik-plugins

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D18740

Details

Provenance
Sebastian Falbesoner <sebastian.falbesoner@gmail.com>Authored on Jun 12 2025, 12:13
PiRKCommitted on Oct 1 2025, 08:50
PiRKPushed on Oct 1 2025, 08:50
Reviewer
Restricted Project
Differential Revision
D18740: test: rename CBlockHeader `.rehash()`/`.sha256` -> `.hash_int` for consistency
Parents
rABCa71669cda074: test: remove bare CBlockHeader `.rehash()`/`.calc_sha256()` calls
Branches
Unknown
Tags
Unknown