![]() |
PRCYCoin
2.0.0.7rc1
P2P Digital Currency
|
CCoinsView backed by the LevelDB coin database (chainstate/) More...
#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 |
| Just check whether we have data for a given txid. More... | |
| uint256 | GetBestBlock () const |
| Retrieve the block hash whose state this CCoinsView currently represents. More... | |
| bool | BatchWrite (CCoinsMap &mapCoins, const uint256 &hashBlock) |
| Do a bulk modification (multiple CCoins changes + BestBlock change). More... | |
| bool | GetStats (CCoinsStats &stats) const |
| Calculate statistics about the unspent transaction output set. More... | |
Public Member Functions inherited from CCoinsView | |
| virtual | ~CCoinsView () |
| As we use CCoinsViews polymorphically, have a virtual destructor. More... | |
Protected Attributes | |
| CDBWrapper | db |
CCoinsView backed by the LevelDB 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 45 of file txdb.cpp.
Retrieve the CCoins (unspent transaction outputs) for a given txid.
Reimplemented from CCoinsView.
Definition at line 35 of file txdb.cpp.
|
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.
Definition at line 40 of file txdb.cpp.
|
protected |
1.8.17