PIVX Core  5.6.99
P2P Digital Currency
Classes | Typedefs | Functions
coins.h File Reference
#include "compressor.h"
#include "consensus/consensus.h"
#include "crypto/siphash.h"
#include "memusage.h"
#include "sapling/incrementalmerkletree.h"
#include "script/standard.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
 
class  SaltedIdHasher
 
struct  CCoinsCacheEntry
 
struct  CAnchorsSaplingCacheEntry
 
struct  CNullifiersCacheEntry
 
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< uint256, CAnchorsSaplingCacheEntry, SaltedIdHasherCAnchorsSaplingMap
 
typedef std::unordered_map< uint256, CNullifiersCacheEntry, SaltedIdHasherCNullifiersMap
 
typedef std::unordered_map< COutPoint, CCoinsCacheEntry, SaltedOutpointHasherCCoinsMap
 

Functions

void AddCoins (CCoinsViewCache &cache, const CTransaction &tx, int nHeight, bool check=false, bool fSkipInvalid=false)
 Utility function to add all of a transaction's outputs to a cache. More...
 
const CoinAccessByTxid (const CCoinsViewCache &cache, const uint256 &txid)
 Utility function to find any unspent output with a given txid. More...
 

Typedef Documentation

◆ CAnchorsSaplingMap

Definition at line 174 of file coins.h.

◆ CCoinsMap

Definition at line 177 of file coins.h.

◆ CNullifiersMap

Definition at line 175 of file coins.h.

Function Documentation

◆ AccessByTxid()

const Coin& AccessByTxid ( const CCoinsViewCache view,
const uint256 txid 
)

Utility function to find any unspent output with a given txid.

Todo:
: merge with similar definition in undo.h.

Definition at line 409 of file coins.cpp.

Here is the caller graph for this function:

◆ AddCoins()

void AddCoins ( CCoinsViewCache cache,
const CTransaction tx,
int  nHeight,
bool  check = false,
bool  fSkipInvalid = false 
)

Utility function to add all of a transaction's outputs to a cache.

Definition at line 116 of file coins.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: