PIVX Core  5.6.99
P2P Digital Currency
Functions
coins.cpp File Reference
#include "coins.h"
#include "consensus/consensus.h"
#include "invalid.h"
#include "logging.h"
#include "random.h"
#include "version.h"
#include <assert.h>
Include dependency graph for coins.cpp:

Go to the source code of this file.

Functions

void AddCoins (CCoinsViewCache &cache, const CTransaction &tx, int nHeight, bool check, bool fSkipInvalid)
 Utility function to add all of a transaction's outputs to a cache. More...
 
template<typename Map , typename MapIterator , typename MapEntry >
void BatchWriteAnchors (Map &mapAnchors, Map &cacheAnchors, size_t &cachedCoinsUsage)
 
void BatchWriteNullifiers (CNullifiersMap &mapNullifiers, CNullifiersMap &cacheNullifiers)
 
const CoinAccessByTxid (const CCoinsViewCache &view, const uint256 &txid)
 Utility function to find any unspent output with a given txid. More...
 

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,
bool  fSkipInvalid 
)

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:

◆ BatchWriteAnchors()

template<typename Map , typename MapIterator , typename MapEntry >
void BatchWriteAnchors ( Map &  mapAnchors,
Map &  cacheAnchors,
size_t &  cachedCoinsUsage 
)

Definition at line 186 of file coins.cpp.

◆ BatchWriteNullifiers()

void BatchWriteNullifiers ( CNullifiersMap mapNullifiers,
CNullifiersMap cacheNullifiers 
)

Definition at line 218 of file coins.cpp.

Here is the caller graph for this function: