|
| | CCoinsViewCache (CCoinsView *baseIn) |
| |
| | CCoinsViewCache (const CCoinsViewCache &)=delete |
| | By deleting the copy constructor, we prevent accidentally using it when one intends to create a cache on top of a base cache. More...
|
| |
| bool | GetSaplingAnchorAt (const uint256 &rt, SaplingMerkleTree &tree) const override |
| | Retrieve the tree (Sapling) at a particular anchored root in the chain. More...
|
| |
| bool | GetNullifier (const uint256 &nullifier) const override |
| | Determine whether a nullifier is spent or not. More...
|
| |
| uint256 | GetBestAnchor () const override |
| | Get the current "tip" or the latest anchored tree root in the chain. More...
|
| |
| template<typename Tree > |
| void | PushAnchor (const Tree &tree) |
| |
| void | PopAnchor (const uint256 &rt) |
| |
| void | SetNullifiers (const CTransaction &tx, bool spent) |
| |
| bool | HaveShieldedRequirements (const CTransaction &tx) const |
| | Check whether all sapling spend requirements (anchors/nullifiers) are satisfied. More...
|
| |
| bool | GetCoin (const COutPoint &outpoint, Coin &coin) const override |
| | Retrieve the Coin (unspent transaction output) for a given outpoint. More...
|
| |
| bool | HaveCoin (const COutPoint &outpoint) const override |
| | Just check whether we have data for a given outpoint. More...
|
| |
| uint256 | GetBestBlock () const override |
| | Retrieve the block hash whose state this CCoinsView currently represents. More...
|
| |
| void | SetBestBlock (const uint256 &hashBlock) |
| |
| bool | GetUTXOCoin (const COutPoint &outpoint, Coin &coin) const |
| | Get the coin and check if it's spent. More...
|
| |
| bool | BatchWrite (CCoinsMap &mapCoins, const uint256 &hashBlock, const uint256 &hashSaplingAnchor, CAnchorsSaplingMap &mapSaplingAnchors, CNullifiersMap &mapSaplingNullifiers) override |
| | Do a bulk modification (multiple Coin changes + BestBlock change). More...
|
| |
| bool | HaveCoinInCache (const COutPoint &outpoint) const |
| | Check if we have the given utxo already loaded in this cache. More...
|
| |
| const Coin & | AccessCoin (const COutPoint &output) const |
| | Return a reference to a Coin in the cache, or a pruned one if not found. More...
|
| |
| void | AddCoin (const COutPoint &outpoint, Coin &&coin, bool potential_overwrite) |
| | Add a coin. More...
|
| |
| void | SpendCoin (const COutPoint &outpoint, Coin *moveto=nullptr) |
| | Spend a coin. More...
|
| |
| bool | Flush () |
| | Push the modifications applied to this cache to its base. More...
|
| |
| void | Uncache (const COutPoint &outpoint) |
| | Removes the UTXO with the given outpoint from the cache, if it is not modified. More...
|
| |
| unsigned int | GetCacheSize () const |
| | Calculate the size of the cache (in number of transaction outputs) More...
|
| |
| size_t | DynamicMemoryUsage () const |
| | Calculate the size of the cache (in bytes) More...
|
| |
| CAmount | GetValueIn (const CTransaction &tx) const |
| | Amount of pivx 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. More...
|
| |
| bool | HaveInputs (const CTransaction &tx) const |
| | Check whether all prevouts of the transaction are present in the UTXO set represented by this view. More...
|
| |
| int | GetCoinDepthAtHeight (const COutPoint &output, int nHeight) const |
| |
| CAmount | GetTotalAmount () const |
| |
| bool | PruneInvalidEntries () |
| |
| template<> |
| void | PushAnchor (const SaplingMerkleTree &tree) |
| |
| template<> |
| void | BringBestAnchorIntoCache (const uint256 ¤tRoot, SaplingMerkleTree &tree) |
| |
| | CCoinsViewBacked (CCoinsView *viewIn) |
| |
| std::vector< uint256 > | GetHeadBlocks () const override |
| | Retrieve the range of blocks that may have been only partially written. More...
|
| |
| void | SetBackend (CCoinsView &viewIn) |
| |
| CCoinsViewCursor * | Cursor () const override |
| | Get a cursor to iterate over the whole state. More...
|
| |
| size_t | EstimateSize () const override |
| | Estimate database size (0 if not implemented) More...
|
| |
| virtual | ~CCoinsView () |
| | As we use CCoinsViews polymorphically, have a virtual destructor. More...
|
| |
|
| CCoinsMap::iterator | FetchCoin (const COutPoint &outpoint) const |
| |
| template<typename Tree , typename Cache , typename CacheEntry > |
| void | AbstractPopAnchor (const uint256 &newrt, Cache &cacheAnchors, uint256 &hash) |
| | Generalized interface for popping anchors. More...
|
| |
| template<typename Tree , typename Cache , typename CacheIterator , typename CacheEntry > |
| void | AbstractPushAnchor (const Tree &tree, Cache &cacheAnchors, uint256 &hash) |
| | Generalized interface for pushing anchors. More...
|
| |
| template<typename Tree > |
| void | BringBestAnchorIntoCache (const uint256 ¤tRoot, Tree &tree) |
| | Interface for bringing an anchor into the cache. More...
|
| |
CCoinsView that adds a memory cache for transactions to another CCoinsView.
Definition at line 282 of file coins.h.