Page MenuHomePhabricator

test: remove bare CTransaction `.rehash()` calls
ClosedPublic

Authored by PiRK on Sep 29 2025, 15:36.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC13275833a495: test: remove bare CTransaction `.rehash()` calls
Summary

Since the previous commit, CTransaction object calls to the
methods .rehash() and .calc_sha256() are effectively no-ops
if the returned value is not used, so we can just remove them.

This is a partial backport of core#32421
https://github.com/bitcoin/bitcoin/pull/32421/commits/9b3dce24a3336a02563412b541a3fb2003e92506

Depends on D18712

Test Plan

ninja check-functional-extended

Diff Detail

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

Event Timeline

PiRK requested review of this revision.Sep 29 2025, 15:36
PiRK planned changes to this revision.Sep 29 2025, 19:41
PiRK added inline comments.
test/functional/feature_block.py
525 ↗(On Diff #55945)

this breaks feature_block and introduces an infinite loop. This is not a tx

unbreak feature_block.py

This revision is now accepted and ready to land.Sep 30 2025, 07:23