Page MenuHomePhabricator

Convert SelectCoinsMinConf to use Amount class
ClosedPublic

Authored by schancel on Nov 7 2017, 16:53.

Details

Test Plan

make check && ./qa/pull-tester/rpc-tests.py

Diff Detail

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

Event Timeline

deadalnix requested changes to this revision.Nov 7 2017, 17:42
deadalnix added inline comments.
src/wallet/wallet.cpp
2351 ↗(On Diff #1659)

This is not the same thing.

This revision now requires changes to proceed.Nov 7 2017, 17:42
src/wallet/wallet.cpp
2351 ↗(On Diff #1659)

std::numeric_limits<Amount>::max() is zero for non-numeric values like Amount. While this is not the same, nobody can ever have a wallet with MAX_MONEY in it. To me it is a sensible replacement as a greatest upper bound for the selection below.

However, if you want it changed, please let me know what would make sense here to you.

Discussed in chat. It's ok.

This revision is now accepted and ready to land.Nov 7 2017, 19:27
This revision was automatically updated to reflect the committed changes.