Page MenuHomePhabricator

[test] remove unnecessary transaction rehashing
ClosedPublic

Authored by PiRK on Apr 8 2022, 08:07.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABCf2403c070739: [test] remove unnecessary transaction rehashing
Summary

The create_coinbase function already calls CTransaction.calc_sha256() immediately prior to returning the transaction, so it is not necessary to call CTransaction.rehash() if the transaction is not modified.

Test Plan

test/functional/test_runner.py abc*

Diff Detail

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

Event Timeline

PiRK requested review of this revision.Apr 8 2022, 08:07
PiRK retitled this revision from [test]remove unnecessary transaction rehashing to [test] remove unnecessary transaction rehashing.Apr 8 2022, 08:41
This revision is now accepted and ready to land.Apr 8 2022, 09:17