|
bool | WriteBlock (const CBlock &block, const CBlockIndex *pindex) override |
| Write update index entries for a newly connected block.
|
|
BaseIndex::DB & | GetDB () const override |
|
const char * | GetName () const override |
| Get the name of the index for display in logs.
|
|
void | BlockConnected (const std::shared_ptr< const CBlock > &block, const CBlockIndex *pindex) override |
| Notifies listeners of a block being connected.
|
|
void | ChainStateFlushed (const CBlockLocator &locator) override |
| Notifies listeners of the new active block chain on-disk.
|
|
const CBlockIndex * | CurrentIndex () |
|
virtual bool | Init () |
| Initialize internal state from the database and block index.
|
|
virtual bool | CommitInternal (CDBBatch &batch) |
| Virtual method called internally by Commit that can be overridden to atomically commit more index state.
|
|
virtual bool | Rewind (const CBlockIndex *current_tip, const CBlockIndex *new_tip) |
| Rewind index to an earlier chain tip during a chain reorg.
|
|
void | SetBestBlockIndex (const CBlockIndex *block) |
| Update the internal best block index as well as the prune lock.
|
|
| ~CValidationInterface ()=default |
| Protected destructor so that instances can only be deleted by derived classes.
|
|
virtual void | UpdatedBlockTip (const CBlockIndex *pindexNew, const CBlockIndex *pindexFork, bool fInitialDownload) |
| Notifies listeners when the block chain tip advances.
|
|
virtual void | TransactionAddedToMempool (const CTransactionRef &tx, std::shared_ptr< const std::vector< Coin > > spent_coins, uint64_t mempool_sequence) |
| Notifies listeners of a transaction having been added to mempool.
|
|
virtual void | TransactionRemovedFromMempool (const CTransactionRef &tx, MemPoolRemovalReason reason, uint64_t mempool_sequence) |
| Notifies listeners of a transaction leaving mempool.
|
|
virtual void | BlockDisconnected (const std::shared_ptr< const CBlock > &block, const CBlockIndex *pindex) |
| Notifies listeners of a block being disconnected.
|
|
virtual void | BlockChecked (const CBlock &, const BlockValidationState &) |
| Notifies listeners of a block validation result.
|
|
virtual void | NewPoWValidBlock (const CBlockIndex *pindex, const std::shared_ptr< const CBlock > &block) |
| Notifies listeners that a block which builds directly on our current tip has been received and connected to the headers tree, though not validated yet.
|
|
virtual void | BlockFinalized (const CBlockIndex *pindex) |
|
virtual void | BlockInvalidated (const CBlockIndex *pindex, const std::shared_ptr< const CBlock > &block) |
|
TxIndex is used to look up transactions included in the blockchain by ID.
The index is written to a LevelDB database and records the filesystem location of each transaction by transaction ID.
Definition at line 22 of file txindex.h.