Changeset View
Changeset View
Standalone View
Standalone View
src/coins.h
Show First 20 Lines • Show All 204 Lines • ▼ Show 20 Lines | public: | ||||
CCoinsViewCache(CCoinsView *baseIn); | CCoinsViewCache(CCoinsView *baseIn); | ||||
// Standard CCoinsView methods | // Standard CCoinsView methods | ||||
bool GetCoin(const COutPoint &outpoint, Coin &coin) const override; | bool GetCoin(const COutPoint &outpoint, Coin &coin) const override; | ||||
bool HaveCoin(const COutPoint &outpoint) const override; | bool HaveCoin(const COutPoint &outpoint) const override; | ||||
uint256 GetBestBlock() const override; | uint256 GetBestBlock() const override; | ||||
void SetBestBlock(const uint256 &hashBlock); | void SetBestBlock(const uint256 &hashBlock); | ||||
bool BatchWrite(CCoinsMap &mapCoins, const uint256 &hashBlock) override; | bool BatchWrite(CCoinsMap &mapCoins, const uint256 &hashBlock) override; | ||||
CCoinsViewCursor *Cursor() const override { | |||||
throw std::logic_error( | |||||
"CCoinsViewCache cursor iteration not supported."); | |||||
} | |||||
/** | /** | ||||
* Check if we have the given utxo already loaded in this cache. | * Check if we have the given utxo already loaded in this cache. | ||||
* The semantics are the same as HaveCoin(), but no calls to the backing | * The semantics are the same as HaveCoin(), but no calls to the backing | ||||
* CCoinsView are made. | * CCoinsView are made. | ||||
*/ | */ | ||||
bool HaveCoinInCache(const COutPoint &outpoint) const; | bool HaveCoinInCache(const COutPoint &outpoint) const; | ||||
▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines |