HomePhabricator

[backport#17261 9/13] refactor: define a UINT256_ONE global constant

Description

[backport#17261 9/13] refactor: define a UINT256_ONE global constant

Summary:
Instead of having a uint256 representations of one scattered throughout
where it is used, define it globally in uint256.h

https://github.com/bitcoin/bitcoin/pull/17261/commits/4977c30d59e88a3e5ee248144bcc023debcd895b

Depends on D7855

Partial backport of Core PR17261

Test Plan:

ninja all check check-functional

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Subscribers: deadalnix

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

Details

Provenance
Andrew Chow <achow101-github@achow101.com>Authored on Dec 30 2019, 19:05
majcostaCommitted on Oct 10 2020, 19:44
majcostaPushed on Oct 10 2020, 19:44
Reviewer
Restricted Project
Differential Revision
D7858: [backport#17261 9/13] refactor: define a UINT256_ONE global constant
Parents
rABC343d199ad140: [backport#17261 8/13] HD Split: Avoid redundant upgrades
Branches
Unknown
Tags
Unknown