![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
#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 |
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 | |
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.
|
virtual |
Retrieve the block hash whose state this CCoinsView currently represents.
Reimplemented from CCoinsView.
Reimplemented in CCoinsViewCache.
Retrieve the CCoins (unspent transaction outputs) for a given txid.
Reimplemented from CCoinsView.
Reimplemented in CCoinsViewMemPool, CCoinsViewCache, and CCoinsViewErrorCatcher.
Definition at line 52 of file coins.cpp.
Referenced by CCoinsViewErrorCatcher::GetCoins().
|
virtual |
Calculate statistics about the unspent transaction output set.
Reimplemented from CCoinsView.
Definition at line 57 of file coins.cpp.
Referenced by gettxoutsetinfo().
|
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 CCoinsViewMemPool, and CCoinsViewCache.
void CCoinsViewBacked::SetBackend | ( | CCoinsView & | viewIn | ) |
Definition at line 55 of file coins.cpp.
Referenced by AcceptToMemoryPoolWorker(), rest_getutxos(), and signrawtransaction().
|
protected |
Definition at line 344 of file coins.h.
Referenced by BatchWrite(), CCoinsViewCache::FetchCoins(), CCoinsViewCache::Flush(), GetBestBlock(), CCoinsViewCache::GetBestBlock(), GetCoins(), CCoinsViewMemPool::GetCoins(), GetStats(), HaveCoins(), CCoinsViewMemPool::HaveCoins(), CCoinsViewCache::ModifyCoins(), and SetBackend().