Page MenuHomePhabricator

Use TxId internally in COutPoint
ClosedPublic

Authored by deadalnix on May 9 2018, 12:55.

Details

Summary

This is a step toward improving type safety by using TxId/TxHash instead of raw uint256

Depends on D1403

Test Plan
make check

Diff Detail

Repository
rABC Bitcoin ABC
Branch
coutpointtxid
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 2564
Build 3245: Bitcoin ABC Buildbot (legacy)
Build 3244: arc lint + arc unit

Event Timeline

jasonbcox added inline comments.
src/primitives/transaction.h
21

The : uint256() is redundant

43

Will the uint256 in the constructor be migrated later?

src/primitives/transaction.h
43

Yes, right now this crate a TON of compile errors.

schancel added inline comments.
src/primitives/transaction.h
43

.png (338×669 px, 11 KB)

This revision is now accepted and ready to land.May 18 2018, 16:33
This revision was automatically updated to reflect the committed changes.