|
| node::BlockManager & | m_blockman |
| | Reference to a BlockManager instance which itself is shared across all Chainstate instances. More...
|
| |
| ChainstateManager & | m_chainman |
| | The chainstate manager that owns this chainstate. More...
|
| |
| CChain | m_chain |
| | The current chain of blockheaders we consult and build on. More...
|
| |
| const std::optional< uint256 > | m_from_snapshot_blockhash |
| | The blockhash which is the base of the snapshot this chainstate was created from. More...
|
| |
| const CBlockIndex *SnapshotBase() const EXCLUSIVE_LOCKS_REQUIRED(const CBlockIndex *TargetBlock() const EXCLUSIVE_LOCKS_REQUIRED(void SetTargetBlock(CBlockIndex *block) EXCLUSIVE_LOCKS_REQUIRED(void SetTargetBlockHash(uint256 block_hash) EXCLUSIVE_LOCKS_REQUIRED(boo | ReachedTarget )() const EXCLUSIVE_LOCKS_REQUIRED( |
| | The base of the snapshot this chainstate was created from. More...
|
| |
| std::set< CBlockIndex *, node::CBlockIndexWorkComparator > | setBlockIndexCandidates |
| | The set of all CBlockIndex entries that have as much work as our current tip or more, and transaction data needed to be validated (with BLOCK_VALID_TRANSACTIONS for each block and its parents back to the genesis block or an assumeutxo snapshot block). More...
|
| |
| size_t | m_coinsdb_cache_size_bytes {0} |
| | The cache size of the on-disk coins view. More...
|
| |
| size_t | m_coinstip_cache_size_bytes {0} |
| | The cache size of the in-memory coins view. More...
|
| |
| bool ActivateBestChain(BlockValidationState &state, std::shared_ptr< const CBlock > pblock=nullptr) LOCKS_EXCLUDED(DisconnectResult DisconnectBlock(const CBlock &block, const CBlockIndex *pindex, CCoinsViewCache &view) EXCLUSIVE_LOCKS_REQUIRED(boo | ConnectBlock )(const CBlock &block, BlockValidationState &state, CBlockIndex *pindex, CCoinsViewCache &view, bool fJustCheck=false) EXCLUSIVE_LOCKS_REQUIRED(cs_main) |
| | Find the best known block, and make it the tip of the block chain. More...
|
| |
| bool m_mempool | cs |
| |
| bool PreciousBlock(BlockValidationState &state, CBlockIndex *pindex) LOCKS_EXCLUDED(bool InvalidateBlock(BlockValidationState &state, CBlockIndex *pindex) LOCKS_EXCLUDED(void SetBlockFailureFlags(CBlockIndex *pindex) EXCLUSIVE_LOCKS_REQUIRED(voi | ResetBlockFailureFlags )(CBlockIndex *pindex) EXCLUSIVE_LOCKS_REQUIRED(cs_main) |
| | Mark a block as precious and reorganize. More...
|
| |
| const CBlockIndex *m_cached_snapshot_base | GUARDED_BY (::cs_main) |
| | Cached result of LookupBlockIndex(*m_from_snapshot_blockhash) More...
|
| |
| const CBlockIndex *m_cached_target_block | GUARDED_BY (::cs_main) |
| | Cached result of LookupBlockIndex(*m_target_blockhash) More...
|
| |
| std::optional< const char * > m_last_script_check_reason_logged | GUARDED_BY (::cs_main) |
| |
| bool | ActivateBestChainStep (BlockValidationState &state, CBlockIndex *pindexMostWork, const std::shared_ptr< const CBlock > &pblock, bool &fInvalidFound, ConnectTrace &connectTrace) EXCLUSIVE_LOCKS_REQUIRED(cs_main |
| | Return the [start, end] (inclusive) of block heights we can prune. More...
|
| |
| bool | ConnectTip (BlockValidationState &state, CBlockIndex *pindexNew, std::shared_ptr< const CBlock > block_to_connect, ConnectTrace &connectTrace, DisconnectedBlockTransactions &disconnectpool) EXCLUSIVE_LOCKS_REQUIRED(cs_main |
| | Connect a new block to m_chain. More...
|
| |
| void | InvalidBlockFound (CBlockIndex *pindex, const BlockValidationState &state) EXCLUSIVE_LOCKS_REQUIRED(cs_main) |
| |
| CBlockIndex * | FindMostWorkChain () EXCLUSIVE_LOCKS_REQUIRED(cs_main) |
| | Return the tip of the chain with the most work in it, that isn't known to be invalid (it's however far from certain to be valid). More...
|
| |
| bool | RollforwardBlock (const CBlockIndex *pindex, CCoinsViewCache &inputs) EXCLUSIVE_LOCKS_REQUIRED(cs_main) |
| | Apply the effects of a block on the utxo cache, ignoring that it may already have been applied. More...
|
| |
| void | CheckForkWarningConditions () EXCLUSIVE_LOCKS_REQUIRED(cs_main) |
| |
| void | InvalidChainFound (CBlockIndex *pindexNew) EXCLUSIVE_LOCKS_REQUIRED(cs_main) |
| |
| void | MaybeUpdateMempoolForReorg (DisconnectedBlockTransactions &disconnectpool, bool fAddToMempool) EXCLUSIVE_LOCKS_REQUIRED(cs_main |
| | Make mempool consistent after a reorg, by re-adding or recursively erasing disconnected block transactions from the mempool, and also removing any other transactions from the mempool that are no longer valid given the new tip/height. More...
|
| |
| Mutex | m_chainstate_mutex |
| | The ChainState Mutex A lock that must be held when modifying this ChainState - held in ActivateBestChain() and InvalidateBlock() More...
|
| |
| CTxMemPool * | m_mempool |
| | Optional mempool that is kept in sync with the chain. More...
|
| |
| std::unique_ptr< CoinsViews > | m_coins_views |
| | Manages the UTXO set, which is a reflection of the contents of m_chain. More...
|
| |
| void m_mempool | cs |
| |
| void UpdateTip(const CBlockIndex *pindexNew) EXCLUSIVE_LOCKS_REQUIRED(NodeClock::time_poin | m_next_write ) {NodeClock::time_point::max()} |
| | Check warning conditions and do some notifications on new chain tip set. More...
|
| |
| util::Result< void > InvalidateCoinsDBOnDisk() EXCLUSIVE_LOCKS_REQUIRED(friend | ChainstateManager |
| | In case of an invalid snapshot, rename the coins leveldb directory so that it can be examined for issue diagnosis. More...
|
| |
Definition at line 15 of file mempool.h.