Page MenuHomePhabricator

Rename hash to txid for COutPoint in the test framework
ClosedPublic

Authored by sdulfari on Apr 11 2023, 16:01.

Details

Reviewers
PiRK
Group Reviewers
Restricted Project
Commits
rABC6456cdacf8f2: Rename hash to txid for COutPoint in the test framework
Summary

This fixes two issues:

  1. hash as used in COutPoint init() shadows a python builtin.
  2. hash is actually txid in the rest of the code base.
Test Plan
ninja check-functional

Diff Detail

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

Event Timeline

Apparently the lint errors come from my local machine since I have flake8-builtins installed. Please ignore for now. I will get to those soon.

PiRK added a subscriber: PiRK.

In messages.CTransaction, it is called sha256

This revision is now accepted and ready to land.Apr 11 2023, 17:27
In D13670#304109, @PiRK wrote:

In messages.CTransaction, it is called sha256

And there is also a CTransaction.hash which is a hex string version of the txid

This revision was landed with ongoing or failed builds.Apr 11 2023, 17:36
This revision was automatically updated to reflect the committed changes.