![]() |
PIVX Core
5.6.99
P2P Digital Currency
|
CCoinsView that brings transactions from a memorypool into view. More...
#include <txmempool.h>
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< uint256 > | GetHeadBlocks () const override |
| Retrieve the range of blocks that may have been only partially written. More... | |
| void | SetBackend (CCoinsView &viewIn) |
| CCoinsViewCursor * | Cursor () 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 | |
| CTxMemPool & | mempool |
Protected Attributes inherited from CCoinsViewBacked | |
| CCoinsView * | base |
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.
| CCoinsViewMemPool::CCoinsViewMemPool | ( | CCoinsView * | baseIn, |
| CTxMemPool & | mempoolIn | ||
| ) |
Definition at line 1298 of file txmempool.cpp.
Retrieve the Coin (unspent transaction output) for a given outpoint.
Reimplemented from CCoinsViewBacked.
Definition at line 1300 of file txmempool.cpp.
|
virtual |
Determine whether a nullifier is spent or not.
Reimplemented from CCoinsViewBacked.
Definition at line 1322 of file txmempool.cpp.
|
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.
|
protected |
Definition at line 731 of file txmempool.h.