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 Thu, Jun 10, 01:09
majcostaPushed on Thu, Jun 10, 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