Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
#include <primitives/transaction.h>#include <compressor.h>#include <core_memusage.h>#include <hash.h>#include <memusage.h>#include <serialize.h>#include <uint256.h>#include <assert.h>#include <stdint.h>#include <unordered_map>
Include dependency graph for coins.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| class | Coin |
| A UTXO entry. More... | |
| class | SaltedOutpointHasher |
| struct | CCoinsCacheEntry |
| class | CCoinsViewCursor |
| Cursor for iterating over CoinsView state. More... | |
| class | CCoinsView |
| Abstract view on the open txout dataset. More... | |
| class | CCoinsViewBacked |
| CCoinsView backed by another CCoinsView. More... | |
| class | CCoinsViewCache |
| CCoinsView that adds a memory cache for transactions to another CCoinsView. More... | |
Typedefs | |
| typedef std::unordered_map< COutPoint, CCoinsCacheEntry, SaltedOutpointHasher > | CCoinsMap |
Functions | |
| void | AddCoins (CCoinsViewCache &cache, const CTransaction &tx, int nHeight, bool check=false) |
| Utility function to add all of a transaction's outputs to a cache. More... | |
| const Coin & | AccessByTxid (const CCoinsViewCache &cache, const uint256 &txid) |
| Utility function to find any unspent output with a given txid. More... | |
Typedef Documentation
◆ CCoinsMap
| typedef std::unordered_map<COutPoint, CCoinsCacheEntry, SaltedOutpointHasher> CCoinsMap |
Function Documentation
◆ AccessByTxid()
| const Coin& AccessByTxid | ( | const CCoinsViewCache & | cache, |
| const uint256 & | txid | ||
| ) |
Utility function to find any unspent output with a given txid.
Definition at line 249 of file coins.cpp.
References CCoinsViewCache::AccessCoin(), coinEmpty, Coin::IsSpent(), MAX_OUTPUTS_PER_BLOCK, and COutPoint::n.
Referenced by ApplyTxInUndo(), GetTransaction(), and gettxoutproof().
◆ AddCoins()
| void AddCoins | ( | CCoinsViewCache & | cache, |
| const CTransaction & | tx, | ||
| int | nHeight, | ||
| bool | check = false |
||
| ) |
Utility function to add all of a transaction's outputs to a cache.
Definition at line 87 of file coins.cpp.
References CCoinsViewCache::AddCoin(), CTransaction::GetHash(), CCoinsViewCache::HaveCoin(), CTransaction::IsCoinBase(), and CTransaction::vout.
Referenced by CChainState::RollforwardBlock(), SetupDummyInputs(), and UpdateCoins().

