Dash Core  0.12.2.1
P2P Digital Currency
CCoinsViewBacked Class Reference

#include <coins.h>

+ Inheritance diagram for CCoinsViewBacked:

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...
 
- Public Member Functions inherited from CCoinsView
virtual ~CCoinsView ()
 As we use CCoinsViews polymorphically, have a virtual destructor. More...
 

Protected Attributes

CCoinsViewbase
 

Detailed Description

CCoinsView backed by another CCoinsView

Definition at line 341 of file coins.h.

Constructor & Destructor Documentation

◆ CCoinsViewBacked()

CCoinsViewBacked::CCoinsViewBacked ( CCoinsView viewIn)

Definition at line 51 of file coins.cpp.

Member Function Documentation

◆ BatchWrite()

bool CCoinsViewBacked::BatchWrite ( CCoinsMap mapCoins,
const uint256 hashBlock 
)
virtual

Do a bulk modification (multiple CCoins changes + BestBlock change). The passed mapCoins can be modified.

Reimplemented from CCoinsView.

Reimplemented in CCoinsViewCache.

Definition at line 56 of file coins.cpp.

◆ GetBestBlock()

uint256 CCoinsViewBacked::GetBestBlock ( ) const
virtual

Retrieve the block hash whose state this CCoinsView currently represents.

Reimplemented from CCoinsView.

Reimplemented in CCoinsViewCache.

Definition at line 54 of file coins.cpp.

◆ GetCoins()

bool CCoinsViewBacked::GetCoins ( const uint256 txid,
CCoins coins 
) const
virtual

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().

◆ GetStats()

bool CCoinsViewBacked::GetStats ( CCoinsStats stats) const
virtual

Calculate statistics about the unspent transaction output set.

Reimplemented from CCoinsView.

Definition at line 57 of file coins.cpp.

Referenced by gettxoutsetinfo().

◆ HaveCoins()

bool CCoinsViewBacked::HaveCoins ( const uint256 txid) const
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.

Definition at line 53 of file coins.cpp.

◆ SetBackend()

void CCoinsViewBacked::SetBackend ( CCoinsView viewIn)

Definition at line 55 of file coins.cpp.

Referenced by AcceptToMemoryPoolWorker(), rest_getutxos(), and signrawtransaction().

Member Data Documentation

◆ base


The documentation for this class was generated from the following files: