Page MenuHomePhabricator

Amount(0LL) => Amount::zero() and Amount(1LL) => SATOSHI
ClosedPublic

Authored by deadalnix on Sep 4 2018, 14:43.

Diff Detail

Repository
rABC Bitcoin ABC
Branch
maountzero
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 3179
Build 4445: Bitcoin ABC Buildbot (legacy)
Build 4444: arc lint + arc unit

Event Timeline

jasonbcox added a subscriber: jasonbcox.
jasonbcox added inline comments.
src/test/rpc_tests.cpp
245

The below line is shorter and nicer to read as just SATOSHI. Do you think it makes sense to add ZERO_SATOSHI or ZERO_AMOUNT as a constant?

This revision is now accepted and ready to land.Sep 4 2018, 17:33
src/test/rpc_tests.cpp
245

Maybe. It's easy to add a constant for this.

This revision was automatically updated to reflect the committed changes.