![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
#include <txdb.h>
Public Member Functions | |
CCoinsViewDB (size_t nCacheSize, bool fMemory=false, bool fWipe=false) | |
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 |
uint256 | GetBestBlock () const |
Retrieve the block hash whose state this CCoinsView currently represents. More... | |
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 | |
CDBWrapper | db |
CCoinsView backed by the coin database (chainstate/)
CCoinsViewDB::CCoinsViewDB | ( | size_t | nCacheSize, |
bool | fMemory = false , |
||
bool | fWipe = false |
||
) |
Do a bulk modification (multiple CCoins changes + BestBlock change). The passed mapCoins can be modified.
Reimplemented from CCoinsView.
|
virtual |
Retrieve the block hash whose state this CCoinsView currently represents.
Reimplemented from CCoinsView.
Definition at line 48 of file txdb.cpp.
Referenced by GetStats().
Retrieve the CCoins (unspent transaction outputs) for a given txid.
Reimplemented from CCoinsView.
|
virtual |
Calculate statistics about the unspent transaction output set.
Reimplemented from CCoinsView.
|
virtual |
Just check whether we have data for a given txid. This may (but cannot always) return true for fully spent transactions
Reimplemented from CCoinsView.
|
protected |
Definition at line 42 of file txdb.h.
Referenced by BatchWrite(), GetBestBlock(), GetCoins(), GetStats(), and HaveCoins().