mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
amount: Move CAmount CENT to unit test header
This commit is contained in:
parent
4901c00792
commit
fa84723e73
5 changed files with 12 additions and 11 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue