Changeset View
Changeset View
Standalone View
Standalone View
src/coins.h
Show First 20 Lines • Show All 506 Lines • ▼ Show 20 Lines | public: | ||||
* Push the modifications applied to this cache to its base. | * Push the modifications applied to this cache to its base. | ||||
* Failure to call this method before destruction will cause the changes to | * Failure to call this method before destruction will cause the changes to | ||||
* be forgotten. If false is returned, the state of this cache (and its | * be forgotten. If false is returned, the state of this cache (and its | ||||
* backing view) will be undefined. | * backing view) will be undefined. | ||||
*/ | */ | ||||
bool Flush(); | bool Flush(); | ||||
/** | /** | ||||
* Removes the transaction with the given hash from the cache, if it is | * Removes the UTXO with the given outpoint from the cache, if it is not | ||||
* not modified. | * modified. | ||||
*/ | */ | ||||
void Uncache(const uint256 &txid); | void Uncache(const COutPoint &outpoint); | ||||
//! Calculate the size of the cache (in number of transactions) | //! Calculate the size of the cache (in number of transactions) | ||||
unsigned int GetCacheSize() const; | unsigned int GetCacheSize() const; | ||||
//! Calculate the size of the cache (in bytes) | //! Calculate the size of the cache (in bytes) | ||||
size_t DynamicMemoryUsage() const; | size_t DynamicMemoryUsage() const; | ||||
/** | /** | ||||
Show All 36 Lines |