Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
A UTXO entry. More...
#include <coins.h>
Public Member Functions | |
Coin (CTxOut &&outIn, int nHeightIn, bool fCoinBaseIn) | |
construct a Coin from a CTxOut and height/coinbase information. More... | |
Coin (const CTxOut &outIn, int nHeightIn, bool fCoinBaseIn) | |
void | Clear () |
Coin () | |
empty constructor More... | |
bool | IsCoinBase () const |
template<typename Stream > | |
void | Serialize (Stream &s) const |
template<typename Stream > | |
void | Unserialize (Stream &s) |
bool | IsSpent () const |
size_t | DynamicMemoryUsage () const |
Public Attributes | |
CTxOut | out |
unspent transaction output More... | |
unsigned int | fCoinBase: 1 |
whether containing transaction was a coinbase More... | |
uint32_t | nHeight: 31 |
at which height this containing transaction was included in the active block chain More... | |
Detailed Description
A UTXO entry.
Serialized format:
- VARINT((coinbase ? 1 : 0) | (height << 1))
- the non-spent CTxOut (via CTxOutCompressor)
Constructor & Destructor Documentation
◆ Coin() [1/3]
|
inline |
◆ Coin() [2/3]
|
inline |
◆ Coin() [3/3]
Member Function Documentation
◆ Clear()
|
inline |
◆ DynamicMemoryUsage()
|
inline |
Definition at line 79 of file coins.h.
References memusage::DynamicUsage(), out, and CTxOut::scriptPubKey.
Referenced by CCoinsViewCache::BatchWrite().
◆ IsCoinBase()
|
inline |
Definition at line 54 of file coins.h.
References fCoinBase.
Referenced by AcceptToMemoryPoolWorker(), Consensus::CheckTxInputs(), and CTxMemPool::removeForReorg().
◆ IsSpent()
|
inline |
Definition at line 75 of file coins.h.
References CTxOut::IsNull(), and out.
Referenced by AccessByTxid(), ApplyTxInUndo(), CheckInputs(), CheckInputsFromMempoolAndCache(), Consensus::CheckTxInputs(), combinerawtransaction(), CCoinsViewCache::GetCoin(), GetP2SHSigOpCount(), GetTransaction(), gettxoutproof(), GetUTXOCoin(), CPrivateSendBaseSession::IsValidInOuts(), MutateTxSign(), CTxMemPool::removeForReorg(), sendrawtransaction(), Serialize(), and signrawtransaction().
◆ Serialize()
|
inline |
◆ Unserialize()
|
inline |
Member Data Documentation
◆ fCoinBase
unsigned int Coin::fCoinBase |
whether containing transaction was a coinbase
Definition at line 36 of file coins.h.
Referenced by ApplyTxInUndo(), Clear(), CChainState::DisconnectBlock(), gettxout(), IsCoinBase(), TxInUndoSerializer::Serialize(), Serialize(), TxInUndoDeserializer::Unserialize(), and Unserialize().
◆ nHeight
uint32_t Coin::nHeight |
at which height this containing transaction was included in the active block chain
Definition at line 39 of file coins.h.
Referenced by ApplyTxInUndo(), CheckSequenceLocks(), Consensus::CheckTxInputs(), Clear(), CChainState::ConnectBlock(), CChainState::DisconnectBlock(), GetTransaction(), gettxout(), gettxoutproof(), GetUTXOHeight(), CPrivateSendBaseSession::IsValidInOuts(), MutateTxSign(), CTxMemPool::removeForReorg(), TxInUndoSerializer::Serialize(), Serialize(), signrawtransaction(), TxInUndoDeserializer::Unserialize(), and Unserialize().
◆ out
CTxOut Coin::out |
unspent transaction output
Definition at line 33 of file coins.h.
Referenced by CTxMemPool::addAddressIndex(), CTxMemPool::addSpentIndex(), AreInputsStandard(), CDeterministicMNManager::BuildNewListFromBlock(), CheckInputs(), CheckInputsFromMempoolAndCache(), CheckProRegTx(), CheckProUpRegTx(), Consensus::CheckTxInputs(), Clear(), combinerawtransaction(), CChainState::ConnectBlock(), CChainState::DisconnectBlock(), DynamicMemoryUsage(), GetP2SHSigOpCount(), gettxout(), CCoinsViewCache::GetValueIn(), CPrivateSend::IsCollateralValid(), IsSpent(), CPrivateSendBaseSession::IsValidInOuts(), masternodelist(), MutateTxSign(), TxInUndoSerializer::Serialize(), Serialize(), signrawtransaction(), TransactionDesc::toHTML(), CDeterministicMN::ToJson(), TxInUndoDeserializer::Unserialize(), Unserialize(), and MasternodeList::updateDIP3List().
The documentation for this class was generated from the following file:
- src/coins.h