BlockManager [constructor] | Construct a block manager. |
AddToBlockIndex | Add a block header to the in-memory block index, updating the best header. |
AddUnlinkedBlock | Record a block whose ancestor is still missing transaction data. |
CalculateCurrentUsage | Calculate the amount of disk space the block & undo files currently use |
CheckBlockDataAvailability | Check if all blocks in the [upper_block, lower_block]range have data available as defined by the status mask. The caller is responsible for ensuring that lower_block is an ancestor of upper_block (part of the same chain). |
CleanupBlockRevFiles | Remove leftover block and undo files that no longer belong to the block tree. |
DeletePruneLock | Delete a prune lock identified by its name. Returns true if the lock existed. |
GetAllBlockIndices | Return pointers to every block index entry currently held in memory. |
GetBlockFileInfo | Get block file info entry for one block file |
GetBlockPosFilename | Translation to a filesystem path |
GetFirstBlock | Returns the earliest block with specified status_mask flags set after the latest block not having those flags. |
GetPruneTarget | Attempt to stay below this number of bytes of block files. |
InsertBlockIndex | Create a new block index entry for a given block hash |
IsBlockPruned | Check whether the block associated with this index entry is pruned or not. |
IsPruneMode | Whether running in -prune mode. |
LoadBlockIndexDB | Load the block index from the database into memory. |
LoadingBlocks | Report whether blocks are still being imported or indexed. |
LookupBlockIndex | Look up a block index entry by hash. |
OpenBlockFile | Open a block file (blk?????.dat) |
PruneOneBlockFile | Mark one block file as pruned (modify associated database entries) |
ReadBlock | ReadBlock overloads |
ReadBlockUndo | Read a block's undo data from disk using its block index entry. |
ReadRawBlock | Read the raw, still-serialized bytes of a block (or a sub-range) from disk. |
ScanAndUnlinkAlreadyPrunedFiles | Remove any pruned block & undo files that are still on disk. This could happen on some systems if the file was still being read while unlinked, or if we crash before unlinking. |
UnlinkPrunedFiles | Actually unlink the specified files |
UpdateBlockInfo | Update blockfile info while processing a block during reindex. The block must be available on disk. |
UpdatePruneLock | Create or update a prune lock identified by its name |
WriteBlock | Store block on disk and update block file statistics. |
WriteBlockIndexDB | Write the dirty block index and block-file entries to the database. |
WriteBlockUndo | Write a block's undo data to disk and record it in the block index. |