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
Branch
coutpoint-hash-to-txid
Lint
Lint Errors
SeverityLocationCodeMessage
Errortest/functional/test_framework/messages.py:1007A002flake8 A002
Errortest/functional/test_framework/messages.py:1074A002flake8 A002
Unit
No Test Coverage
Build Status
Buildable 23204
Build 46027: Build Diffbuild-without-wallet · build-diff · build-debug · build-clang-tidy · build-clang
Build 46026: arc lint + arc unit

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.