Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
#include <stdint.h>
Go to the source code of this file.
Typedefs | |
typedef int64_t | CAmount |
Amount in satoshis (Can be negative) More... | |
Functions | |
bool | MoneyRange (const CAmount &nValue) |
Variables | |
static const CAmount | COIN = 100000000 |
static const CAmount | CENT = 1000000 |
static const CAmount | MAX_MONEY = 21000000 * COIN |
No amount larger than this (in satoshi) is valid. More... | |
Typedef Documentation
◆ CAmount
typedef int64_t CAmount |
Function Documentation
◆ MoneyRange()
|
inline |
Definition at line 27 of file amount.h.
References MAX_MONEY.
Referenced by AmountFromValue(), CheckTransaction(), Consensus::CheckTxInputs(), CChainState::ConnectBlock(), CWalletTx::GetAnonymizedCredit(), CWalletTx::GetAvailableCredit(), CWalletTx::GetAvailableWatchOnlyCredit(), getblockstats(), CWallet::GetChange(), CWallet::GetCredit(), CWallet::GetDebit(), CWalletTx::GetDenominatedCredit(), CTransaction::GetValueOut(), ParsePaymentAmount(), and PaymentServer::verifyAmount().
Variable Documentation
◆ CENT
|
static |
Definition at line 15 of file amount.h.
Referenced by BOOST_AUTO_TEST_CASE(), CCoinsCaching(), ParseMoney(), and SetupDummyInputs().
◆ COIN
|
static |
Definition at line 14 of file amount.h.
Referenced by CWallet::AvailableCoins(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), CDeterministicMNManager::BuildNewListFromBlock(), CDevNetParams::CDevNetParams(), CheckProRegTx(), CMainParams::CMainParams(), CoinSelection(), CPrivateSendServer::CommitFinalTransaction(), CPrivateSendClientSession::CreateDenominated(), CRegTestParams::CRegTestParams(), CTestNetParams::CTestNetParams(), CPrivateSendClientSession::DoAutomaticDenominating(), FormatMoney(), getblockstats(), GetBlockSubsidy(), CPrivateSend::InitStandardDenominations(), CDeterministicMNManager::IsProTxWithCollateral(), MempoolEviction(), ParseMoney(), COutput::Priority(), ProcessMessage(), CWallet::SelectCoinsGroupedByAddresses(), CWallet::SelectPSInOutPairsByDenominations(), CFeeRate::ToString(), CTxOut::ToString(), OverviewPage::updatePrivateSendProgress(), and ValueFromAmount().
◆ MAX_MONEY
No amount larger than this (in satoshi) is valid.
Note that this constant is not the total money supply, which in Bitcoin currently happens to be less than 21,000,000 BTC for various reasons, but rather a sanity check. As this sanity check is used by consensus-critical validation code, the exact value of the MAX_MONEY constant is consensus critical; in unusual circumstances like a(nother) overflow bug that allowed for the creation of coins out of thin air modification could lead to a fork.
Definition at line 26 of file amount.h.
Referenced by CWallet::AvailableCoins(), CheckTransaction(), getblockstats(), CGovernanceObject::GetMinCollateralFee(), listunspent(), BitcoinUnits::maxMoney(), MoneyRange(), and PaymentServer::verifyAmount().