Page MenuHomePhabricator

Use SATOSHI rather than Amount construction
ClosedPublic

Authored by deadalnix on Sep 3 2018, 17:40.

Details

Summary

The Amount constructor has the notion of satoshi built in. If we want higher precision amount in the future, we need to make that assumption in the code explicit.

As a first step Amount(1) is now SATOSHI and Amount(-1) is now -SATOSHI

Depends on D1704

Test Plan
make check

Diff Detail

Repository
rABC Bitcoin ABC
Branch
zerosat
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 3174
Build 4435: Bitcoin ABC Buildbot (legacy)
Build 4434: arc lint + arc unit