![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
#include <txmempool.h>
Public Member Functions | |
CCoinsViewMemPool (CCoinsView *baseIn, CTxMemPool &mempoolIn) | |
bool | GetCoins (const uint256 &txid, CCoins &coins) const |
Retrieve the CCoins (unspent transaction outputs) for a given txid. More... | |
bool | HaveCoins (const uint256 &txid) const |
![]() | |
CCoinsViewBacked (CCoinsView *viewIn) | |
uint256 | GetBestBlock () const |
Retrieve the block hash whose state this CCoinsView currently represents. More... | |
void | SetBackend (CCoinsView &viewIn) |
bool | BatchWrite (CCoinsMap &mapCoins, const uint256 &hashBlock) |
bool | GetStats (CCoinsStats &stats) const |
Calculate statistics about the unspent transaction output set. More... | |
![]() | |
virtual | ~CCoinsView () |
As we use CCoinsViews polymorphically, have a virtual destructor. More... | |
Protected Attributes | |
CTxMemPool & | mempool |
![]() | |
CCoinsView * | base |
CCoinsView that brings transactions from a memorypool into view. It does not check for spendings by memory pool transactions.
Definition at line 638 of file txmempool.h.
CCoinsViewMemPool::CCoinsViewMemPool | ( | CCoinsView * | baseIn, |
CTxMemPool & | mempoolIn | ||
) |
Definition at line 982 of file txmempool.cpp.
Retrieve the CCoins (unspent transaction outputs) for a given txid.
Reimplemented from CCoinsViewBacked.
Definition at line 984 of file txmempool.cpp.
Referenced by CheckSequenceLocks(), and gettxout().
|
virtual |
Just check whether we have data for a given txid. This may (but cannot always) return true for fully spent transactions
Reimplemented from CCoinsViewBacked.
Definition at line 996 of file txmempool.cpp.
|
protected |
Definition at line 641 of file txmempool.h.
Referenced by GetCoins(), and HaveCoins().