HomePhabricator

Add support for both way comparison for uint256/uint160

Description

Add support for both way comparison for uint256/uint160

Summary: Right now, they only compare one way, which is inconvenient.

Test Plan: Added test cases to cover the new function.

Reviewers: #bitcoin_abc, schancel

Reviewed By: #bitcoin_abc, schancel

Subscribers: teamcity

Differential Revision: https://reviews.bitcoinabc.org/D1526

Details

Provenance
deadalnixAuthored on Jul 1 2018, 00:43
deadalnixPushed on Jul 2 2018, 23:21
Reviewer
Restricted Project
Differential Revision
D1526: Add support for both way comparison for uint256/uint160
Parents
rSTAGING85ea4054dc57: Various nits in validation.cpp
Branches
Unknown
Tags
Unknown
References
tag: phabricator/base/4186