![]() |
PRCYCoin
2.0.0.7rc1
P2P Digital Currency
|
CCoinsView backed by another CCoinsView. More...
#include <coins.h>
Public Member Functions | |
| CCoinsViewBacked (CCoinsView *viewIn) | |
| 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... | |
| void | SetBackend (CCoinsView &viewIn) |
| 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 | |
| CCoinsView * | base |
CCoinsView backed by another CCoinsView.
| CCoinsViewBacked::CCoinsViewBacked | ( | CCoinsView * | viewIn | ) |
Do a bulk modification (multiple CCoins changes + BestBlock change).
The passed mapCoins can be modified.
Reimplemented from CCoinsView.
Reimplemented in CCoinsViewCache.
Definition at line 78 of file coins.cpp.
|
virtual |
Retrieve the block hash whose state this CCoinsView currently represents.
Reimplemented from CCoinsView.
Reimplemented in CCoinsViewCache.
Definition at line 76 of file coins.cpp.
Retrieve the CCoins (unspent transaction outputs) for a given txid.
Reimplemented from CCoinsView.
Reimplemented in CCoinsViewCache, CCoinsViewMemPool, and CCoinsViewErrorCatcher.
Definition at line 74 of file coins.cpp.
|
virtual |
Calculate statistics about the unspent transaction output set.
Reimplemented from CCoinsView.
Definition at line 79 of file coins.cpp.
|
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.
Reimplemented in CCoinsViewCache, and CCoinsViewMemPool.
Definition at line 75 of file coins.cpp.
| void CCoinsViewBacked::SetBackend | ( | CCoinsView & | viewIn | ) |
|
protected |
1.8.17