MoneyRange

Returns true when the amount is non-negative and does not exceed MAX_MONEY.

Synopsis

Declared in <consensus/amount.h>

bool
MoneyRange(CAmount const& nValue);

Return Value

true if nValue is a valid amount within the accepted range.

Parameters

NameDescription
nValueAmount in satoshis to check.