![]() |
Bitcoin Core
26.99.0
P2P Digital Currency
|
Abstract view on the open txout dataset. More...
#include <coins.h>
Public Member Functions | |
virtual bool | GetCoin (const COutPoint &outpoint, Coin &coin) const |
Retrieve the Coin (unspent transaction output) for a given outpoint. More... | |
virtual bool | HaveCoin (const COutPoint &outpoint) const |
Just check whether a given outpoint is unspent. More... | |
virtual uint256 | GetBestBlock () const |
Retrieve the block hash whose state this CCoinsView currently represents. More... | |
virtual std::vector< uint256 > | GetHeadBlocks () const |
Retrieve the range of blocks that may have been only partially written. More... | |
virtual bool | BatchWrite (CCoinsMap &mapCoins, const uint256 &hashBlock, bool erase=true) |
Do a bulk modification (multiple Coin changes + BestBlock change). More... | |
virtual std::unique_ptr< CCoinsViewCursor > | Cursor () const |
Get a cursor to iterate over the whole state. More... | |
virtual | ~CCoinsView () |
As we use CCoinsViews polymorphically, have a virtual destructor. More... | |
virtual size_t | EstimateSize () const |
Estimate database size (0 if not implemented) More... | |
|
inlinevirtual |
|
virtual |
Do a bulk modification (multiple Coin changes + BestBlock change).
The passed mapCoins can be modified.
Reimplemented in CCoinsViewDB, CCoinsViewCache, and CCoinsViewBacked.
Definition at line 15 of file coins.cpp.
|
virtual |
Get a cursor to iterate over the whole state.
Reimplemented in CCoinsViewDB, CCoinsViewCache, and CCoinsViewBacked.
Definition at line 16 of file coins.cpp.
|
inlinevirtual |
Estimate database size (0 if not implemented)
Reimplemented in CCoinsViewDB, and CCoinsViewBacked.
Definition at line 204 of file coins.h.
|
virtual |
Retrieve the block hash whose state this CCoinsView currently represents.
Reimplemented in CCoinsViewDB, CCoinsViewCache, and CCoinsViewBacked.
Definition at line 13 of file coins.cpp.
Retrieve the Coin (unspent transaction output) for a given outpoint.
Returns true only when an unspent coin was found, which is returned in coin. When false is returned, coin's value is unspecified.
Reimplemented in CCoinsViewMemPool, CCoinsViewDB, CCoinsViewErrorCatcher, CCoinsViewCache, and CCoinsViewBacked.
Definition at line 12 of file coins.cpp.
|
virtual |
Retrieve the range of blocks that may have been only partially written.
If the database is in a consistent state, the result is the empty vector. Otherwise, a two-element vector is returned consisting of the new and the old block hash, in that order.
Reimplemented in CCoinsViewDB, and CCoinsViewBacked.
Definition at line 14 of file coins.cpp.
|
virtual |
Just check whether a given outpoint is unspent.
Reimplemented in CCoinsViewDB, CCoinsViewErrorCatcher, CCoinsViewCache, and CCoinsViewBacked.
Definition at line 18 of file coins.cpp.