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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jasonbcox added a subscriber: jasonbcox.
jasonbcox added inline comments.
src/test/rpc_tests.cpp
245 ↗(On Diff #4739)

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 ↗(On Diff #4739)

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

This revision was automatically updated to reflect the committed changes.