amount: Move CAmount CENT to unit test header

This commit is contained in:
MarcoFalke 2018-09-17 14:33:52 -04:00
parent 4901c00792
commit fa84723e73
No known key found for this signature in database
GPG key ID: CE2B75697E69A548
5 changed files with 12 additions and 11 deletions

View file

@ -48,7 +48,7 @@ bool ParseMoney(const char* pszIn, CAmount& nRet)
if (*p == '.')
{
p++;
int64_t nMult = CENT*10;
int64_t nMult = COIN / 10;
while (isdigit(*p) && (nMult > 0))
{
nUnits += nMult * (*p++ - '0');