December 2018
Beginner to intermediate
564 pages
17h 34m
English
Now, it is time to set the coin limit and the minimum value, and the same can be done in the amount.h file:
typedef int64_t CAmount;static const CAmount COIN = 100000000;static const CAmount CENT = 1000000;static const CAmount MAX_MONEY = 84000000 * COIN;inline bool MoneyRange(const CAmount& nValue) { return (nValue >= 0 && nValue <= MAX_MONEY); }#endif // BITCOIN_AMOUNT_H
Read now
Unlock full access