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
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');