6 #ifndef BITCOIN_AMOUNT_H 7 #define BITCOIN_AMOUNT_H 14 static const CAmount COIN = 100000000;
25 static const CAmount MAX_MONEY = 21000000 * COIN;
26 inline bool MoneyRange(
const CAmount& nValue) {
return (nValue >= 0 && nValue <= MAX_MONEY); }
28 #endif // BITCOIN_AMOUNT_H bool MoneyRange(const CAmount &nValue)
int64_t CAmount
Amount in satoshis (Can be negative)