Page MenuHomePhabricator

Convert coins.cpp and coins.h to use Amount struct
ClosedPublic

Authored by schancel on Oct 8 2017, 21:48.

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Convert net and net_processing to use Amount

  • Revert to changes without net_processing.cpp
src/validation.cpp
808 ↗(On Diff #1520)

Looks like you missed that one ?

src/validation.cpp
808 ↗(On Diff #1520)

This was left alone because I hadn't fixed ApplyDeltas yet. These changes are just what is necessary to deal with the changes to coins.cpp

deadalnix added inline comments.
src/bench/ccoins_caching.cpp
87 ↗(On Diff #1524)

You should use a constructor here. It's still fishy that int convert to amount implicitly :/

This revision is now accepted and ready to land.Oct 9 2017, 17:42
This revision was automatically updated to reflect the committed changes.