PRCYCoin  2.0.0.7rc1
P2P Digital Currency
Public Member Functions | Protected Attributes | List of all members
CCoinsViewMemPool Class Reference

CCoinsView that brings transactions from a memorypool into view. More...

#include <txmempool.h>

Inheritance diagram for CCoinsViewMemPool:
[legend]
Collaboration diagram for CCoinsViewMemPool:
[legend]

Public Member Functions

 CCoinsViewMemPool (CCoinsView *baseIn, CTxMemPool &mempoolIn)
 
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...
 
- Public Member Functions inherited from CCoinsViewBacked
 CCoinsViewBacked (CCoinsView *viewIn)
 
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

CTxMemPoolmempool
 
- Protected Attributes inherited from CCoinsViewBacked
CCoinsViewbase
 

Detailed Description

CCoinsView that brings transactions from a memorypool into view.

It does not check for spendings by memory pool transactions.

Definition at line 202 of file txmempool.h.

Constructor & Destructor Documentation

◆ CCoinsViewMemPool()

CCoinsViewMemPool::CCoinsViewMemPool ( CCoinsView baseIn,
CTxMemPool mempoolIn 
)

Definition at line 704 of file txmempool.cpp.

Member Function Documentation

◆ GetCoins()

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

Retrieve the CCoins (unspent transaction outputs) for a given txid.

Reimplemented from CCoinsViewBacked.

Definition at line 706 of file txmempool.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HaveCoins()

bool CCoinsViewMemPool::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 CCoinsViewBacked.

Definition at line 719 of file txmempool.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ mempool

CTxMemPool& CCoinsViewMemPool::mempool
protected

Definition at line 205 of file txmempool.h.


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