PIVX Core  5.6.99
P2P Digital Currency
Public Member Functions | Protected Attributes | List of all members
CCoinsViewMemPool Class Reference

CCoinsView that brings transactions from a memorypool into view. More...

#include <txmempool.h>

Inheritance diagram for CCoinsViewMemPool:
[legend]
Collaboration diagram for CCoinsViewMemPool:
[legend]

Public Member Functions

 CCoinsViewMemPool (CCoinsView *baseIn, CTxMemPool &mempoolIn)
 
bool GetCoin (const COutPoint &outpoint, Coin &coin) const
 Retrieve the Coin (unspent transaction output) for a given outpoint. More...
 
bool HaveCoin (const COutPoint &outpoint) const
 Just check whether we have data for a given outpoint. More...
 
bool GetNullifier (const uint256 &nullifier) const
 Determine whether a nullifier is spent or not. More...
 
- Public Member Functions inherited from CCoinsViewBacked
 CCoinsViewBacked (CCoinsView *viewIn)
 
uint256 GetBestBlock () const override
 Retrieve the block hash whose state this CCoinsView currently represents. More...
 
std::vector< uint256GetHeadBlocks () const override
 Retrieve the range of blocks that may have been only partially written. More...
 
void SetBackend (CCoinsView &viewIn)
 
CCoinsViewCursorCursor () const override
 Get a cursor to iterate over the whole state. More...
 
size_t EstimateSize () const override
 Estimate database size (0 if not implemented) More...
 
bool BatchWrite (CCoinsMap &mapCoins, const uint256 &hashBlock, const uint256 &hashSaplingAnchor, CAnchorsSaplingMap &mapSaplingAnchors, CNullifiersMap &mapSaplingNullifiers) override
 Do a bulk modification (multiple Coin changes + BestBlock change). More...
 
bool GetSaplingAnchorAt (const uint256 &rt, SaplingMerkleTree &tree) const override
 Retrieve the tree (Sapling) at a particular anchored root in the chain. More...
 
uint256 GetBestAnchor () const override
 Get the current "tip" or the latest anchored tree root in the chain. More...
 
- Public Member Functions inherited from CCoinsView
virtual ~CCoinsView ()
 As we use CCoinsViews polymorphically, have a virtual destructor. More...
 

Protected Attributes

CTxMemPoolmempool
 
- Protected Attributes inherited from CCoinsViewBacked
CCoinsViewbase
 

Detailed Description

CCoinsView that brings transactions from a memorypool into view.

It does not check for spendings by memory pool transactions.

Definition at line 728 of file txmempool.h.

Constructor & Destructor Documentation

◆ CCoinsViewMemPool()

CCoinsViewMemPool::CCoinsViewMemPool ( CCoinsView baseIn,
CTxMemPool mempoolIn 
)

Definition at line 1298 of file txmempool.cpp.

Member Function Documentation

◆ GetCoin()

bool CCoinsViewMemPool::GetCoin ( const COutPoint outpoint,
Coin coin 
) const
virtual

Retrieve the Coin (unspent transaction output) for a given outpoint.

Reimplemented from CCoinsViewBacked.

Definition at line 1300 of file txmempool.cpp.

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

◆ GetNullifier()

bool CCoinsViewMemPool::GetNullifier ( const uint256 nullifier) const
virtual

Determine whether a nullifier is spent or not.

Reimplemented from CCoinsViewBacked.

Definition at line 1322 of file txmempool.cpp.

Here is the call graph for this function:

◆ HaveCoin()

bool CCoinsViewMemPool::HaveCoin ( const COutPoint outpoint) const
virtual

Just check whether we have data for a given outpoint.

This may (but cannot always) return true for spent outputs.

Reimplemented from CCoinsViewBacked.

Definition at line 1317 of file txmempool.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ mempool

CTxMemPool& CCoinsViewMemPool::mempool
protected

Definition at line 731 of file txmempool.h.


The documentation for this class was generated from the following files: