HomePhabricator

[refactor] encapsulate a unit's denomination in a class

Description

[refactor] encapsulate a unit's denomination in a class

Summary:
a class that represents a coin's denomination (unit, subunit and decimals of precision) rather than two constants and a magic number that's scattered around a few functions

does not change behavior

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

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

Details

Provenance
majcostaAuthored on Jun 10 2021, 01:09
majcostaPushed on Jun 10 2021, 09:46
Reviewer
Restricted Project
Differential Revision
D9656: [refactor] encapsulate a unit's denomination in a class
Parents
rABCb48da90d1e72: [refactor] set the -ecash CLI argument earlier in startup
Branches
Unknown
Tags
Unknown