CCoinsView that adds a memory cache for transactions to another CCoinsView.
More...
#include <coins.h>
CCoinsView that adds a memory cache for transactions to another CCoinsView.
Definition at line 309 of file coins.h.
CCoinsViewCache::CCoinsViewCache |
( |
CCoinsView & |
baseIn, |
|
|
bool |
fDummy = false |
|
) |
| |
bool CCoinsViewCache::BatchWrite |
( |
const std::map< uint256, CCoins > & |
mapCoins, |
|
|
const uint256 & |
hashBlock |
|
) |
| |
|
virtual |
bool CCoinsViewCache::Flush |
( |
| ) |
|
uint256 CCoinsViewCache::GetBestBlock |
( |
| ) |
|
|
virtual |
unsigned int CCoinsViewCache::GetCacheSize |
( |
| ) |
|
bool CCoinsViewCache::GetCoins |
( |
const uint256 & |
txid, |
|
|
CCoins & |
coins |
|
) |
| |
|
virtual |
const CTxOut & CCoinsViewCache::GetOutputFor |
( |
const CTxIn & |
input | ) |
|
double CCoinsViewCache::GetPriority |
( |
const CTransaction & |
tx, |
|
|
int |
nHeight |
|
) |
| |
int64_t CCoinsViewCache::GetValueIn |
( |
const CTransaction & |
tx | ) |
|
Amount of anoncoins coming in to a transaction Note that lightweight clients may not know anything besides the hash of previous transactions, so may not be able to calculate this.
- Parameters
-
[in] | tx | transaction for which we are checking input total |
- Returns
- Sum of value of all inputs (scriptSigs)
Definition at line 150 of file coins.cpp.
bool CCoinsViewCache::HaveCoins |
( |
const uint256 & |
txid | ) |
|
|
virtual |
bool CCoinsViewCache::SetBestBlock |
( |
const uint256 & |
hashBlock | ) |
|
|
virtual |
bool CCoinsViewCache::SetCoins |
( |
const uint256 & |
txid, |
|
|
const CCoins & |
coins |
|
) |
| |
|
virtual |
The documentation for this class was generated from the following files: