Feathercoin  0.5.0
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
Public Member Functions | Protected Attributes | List of all members
CCoinsViewDB Class Reference

CCoinsView backed by the LevelDB coin database (chainstate/) More...

#include <txdb.h>

Inheritance diagram for CCoinsViewDB:
Inheritance graph
[legend]
Collaboration diagram for CCoinsViewDB:
Collaboration graph
[legend]

Public Member Functions

 CCoinsViewDB (size_t nCacheSize, bool fMemory=false, bool fWipe=false)
 
bool GetCoins (const uint256 &txid, CCoins &coins)
 
bool SetCoins (const uint256 &txid, const CCoins &coins)
 
bool HaveCoins (const uint256 &txid)
 
CBlockIndexGetBestBlock ()
 
bool SetBestBlock (CBlockIndex *pindex)
 
bool BatchWrite (const std::map< uint256, CCoins > &mapCoins, CBlockIndex *pindex)
 
bool GetStats (CCoinsStats &stats)
 
- Public Member Functions inherited from CCoinsView
virtual ~CCoinsView ()
 

Protected Attributes

CLevelDB db
 

Detailed Description

CCoinsView backed by the LevelDB coin database (chainstate/)

Definition at line 15 of file txdb.h.

Constructor & Destructor Documentation

CCoinsViewDB::CCoinsViewDB ( size_t  nCacheSize,
bool  fMemory = false,
bool  fWipe = false 
)

Definition at line 26 of file txdb.cpp.

Member Function Documentation

bool CCoinsViewDB::BatchWrite ( const std::map< uint256, CCoins > &  mapCoins,
CBlockIndex pindex 
)
virtual

Reimplemented from CCoinsView.

Definition at line 59 of file txdb.cpp.

CBlockIndex * CCoinsViewDB::GetBestBlock ( )
virtual

Reimplemented from CCoinsView.

Definition at line 43 of file txdb.cpp.

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

Reimplemented from CCoinsView.

Definition at line 29 of file txdb.cpp.

bool CCoinsViewDB::GetStats ( CCoinsStats stats)
virtual

Reimplemented from CCoinsView.

Definition at line 117 of file txdb.cpp.

bool CCoinsViewDB::HaveCoins ( const uint256 txid)
virtual

Reimplemented from CCoinsView.

Definition at line 39 of file txdb.cpp.

bool CCoinsViewDB::SetBestBlock ( CBlockIndex pindex)
virtual

Reimplemented from CCoinsView.

Definition at line 53 of file txdb.cpp.

bool CCoinsViewDB::SetCoins ( const uint256 txid,
const CCoins coins 
)
virtual

Reimplemented from CCoinsView.

Definition at line 33 of file txdb.cpp.

Member Data Documentation

CLevelDB CCoinsViewDB::db
protected

Definition at line 18 of file txdb.h.


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