![]() |
Bitcoin Core 31.0.0
P2P Digital Currency
|
#include <validation.h>
Public Member Functions | |
| void | CleanupForFuzzing () |
| Test-only method to clear internal state for fuzzing. | |
Public Member Functions inherited from node::BlockManager | |
| BlockManager (const util::SignalInterrupt &interrupt, Options opts) | |
| BlockMap m_block_index | GUARDED_BY (cs_main) |
| std::unique_ptr< BlockTreeDB > m_block_tree_db | GUARDED_BY (::cs_main) |
| CBlockIndex * | InsertBlockIndex (const uint256 &hash) EXCLUSIVE_LOCKS_REQUIRED(cs_main) |
| Create a new block index entry for a given block hash. | |
| void | PruneOneBlockFile (int fileNumber) EXCLUSIVE_LOCKS_REQUIRED(cs_main) |
| Mark one block file as pruned (modify associated database entries) | |
| CBlockIndex * | LookupBlockIndex (const uint256 &hash) EXCLUSIVE_LOCKS_REQUIRED(cs_main) |
| const CBlockIndex * | LookupBlockIndex (const uint256 &hash) const EXCLUSIVE_LOCKS_REQUIRED(cs_main) |
| CBlockFileInfo * | GetBlockFileInfo (size_t n) |
| Get block file info entry for one block file. | |
| void | UpdateBlockInfo (const CBlock &block, unsigned int nHeight, const FlatFilePos &pos) |
| Update blockfile info while processing a block during reindex. | |
| bool | IsPruneMode () const |
| Whether running in -prune mode. | |
| uint64_t | GetPruneTarget () const |
| Attempt to stay below this number of bytes of block files. | |
| bool | LoadingBlocks () const |
| uint64_t | CalculateCurrentUsage () |
| Calculate the amount of disk space the block & undo files currently use. | |
| fs::path | GetBlockPosFilename (const FlatFilePos &pos) const |
| Translation to a filesystem path. | |
| void | UnlinkPrunedFiles (const std::set< int > &setFilesToPrune) const |
| Actually unlink the specified files. | |
| bool | ReadBlock (CBlock &block, const FlatFilePos &pos, const std::optional< uint256 > &expected_hash) const |
| Functions for disk access for blocks. | |
| bool | ReadBlock (CBlock &block, const CBlockIndex &index) const |
| ReadRawBlockResult | ReadRawBlock (const FlatFilePos &pos, std::optional< std::pair< size_t, size_t > > block_part=std::nullopt) const |
| bool | ReadBlockUndo (CBlockUndo &blockundo, const CBlockIndex &index) const |
| void | CleanupBlockRevFiles () const |
Definition at line 15 of file validation.h.
| void TestBlockManager::CleanupForFuzzing | ( | ) |
Test-only method to clear internal state for fuzzing.
Definition at line 15 of file validation.cpp.