![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
Go to the source code of this file.
Classes | |
class | CFeeRate |
Typedefs | |
typedef int64_t | CAmount |
Functions | |
bool | MoneyRange (const CAmount &nValue) |
Variables | |
static const CAmount | COIN = 100000000 |
static const CAmount | CENT = 1000000 |
const std::string | CURRENCY_UNIT |
static const CAmount | MAX_MONEY = 21000000 * COIN |
|
inline |
Definition at line 31 of file amount.h.
Referenced by AmountFromValue(), CheckTransaction(), Consensus::CheckTxInputs(), CWalletTx::GetAnonymizedCredit(), CWalletTx::GetAvailableCredit(), CWalletTx::GetAvailableWatchOnlyCredit(), CWallet::GetChange(), CWallet::GetCredit(), CWallet::GetDebit(), CWalletTx::GetDenominatedCredit(), CTransaction::GetValueOut(), ParsePaymentAmount(), and PaymentServer::verifyAmount().
|
static |
Definition at line 17 of file amount.h.
Referenced by BOOST_AUTO_TEST_CASE(), and ParseMoney().
|
static |
Definition at line 16 of file amount.h.
Referenced by AllowFreeThreshold(), ApproximateBestSubset(), CWallet::AvailableCoins(), BOOST_AUTO_TEST_CASE(), CMasternode::CheckCollateral(), DarksendConfig::clickBasic(), DarksendConfig::clickHigh(), DarksendConfig::clickMax(), CMainParams::CMainParams(), CPrivateSendServer::CommitFinalTransaction(), CPrivateSendClient::CreateDenominated(), CWallet::CreateTransaction(), CRegTestParams::CRegTestParams(), CTestNetParams::CTestNetParams(), CPrivateSendClient::DoAutomaticDenominating(), FormatMoney(), GetBlockSubsidy(), CWallet::GetNeedsToBeAnonymizedBalance(), CPrivateSend::InitStandardDenominations(), CMasternode::IsInputAssociatedWithPubkey(), CMasternodeBlockPayees::IsTransactionValid(), CTxLockRequest::IsValid(), CActiveMasternode::ManageStateInitial(), ParseMoney(), CPrivateSendClient::PrepareDenominate(), WalletModel::prepareTransaction(), COutput::Priority(), CPrivateSendServer::ProcessMessage(), ProcessMessage(), CWallet::SelectCoinsDark(), CWallet::SelectCoinsGrouppedByAddresses(), CWallet::SelectCoinsMinConf(), CPrivateSendClient::SendDenominate(), CFeeRate::ToString(), CTxOut::ToString(), OverviewPage::updatePrivateSendProgress(), and ValueFromAmount().
const std::string CURRENCY_UNIT |
Definition at line 10 of file amount.cpp.
Referenced by createrawtransaction(), decoderawtransaction(), getbalance(), getgovernanceinfo(), getinfo(), getnetworkinfo(), getrawmempool(), getrawtransaction(), getreceivedbyaccount(), getreceivedbyaddress(), getsuperblockbudget(), gettransaction(), gettxout(), getwalletinfo(), HelpMessage(), listaddressgroupings(), listreceivedbyaddress(), listsinceblock(), listtransactions(), listunspent(), movecmd(), sendfrom(), sendmany(), sendtoaddress(), settxfee(), and CFeeRate::ToString().
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 30 of file amount.h.
Referenced by CheckTransaction(), CGovernanceObject::GetMinCollateralFee(), BitcoinUnits::maxMoney(), MoneyRange(), and PaymentServer::verifyAmount().