5 #ifndef BITCOIN_BLOCKDB_H 6 #define BITCOIN_BLOCKDB_H 42 #endif // BITCOIN_BLOCKDB_H
FlatFileSeq BlockFileSeq()
FILE * OpenBlockFile(const FlatFilePos &pos, bool fReadOnly=false)
Open a block file (blk?????.dat).
FILE * OpenUndoFile(const FlatFilePos &pos, bool fReadOnly=false)
Open an undo file (rev?????.dat)
static constexpr unsigned int BLOCKFILE_CHUNK_SIZE
The pre-allocation chunk size for blk?????.dat files (since 0.8)
Parameters that influence chain consensus.
bool ReadBlockFromDisk(CBlock &block, const FlatFilePos &pos, const Consensus::Params ¶ms)
Functions for disk access for blocks.
The block chain is a tree shaped structure starting with the genesis block at the root...
fs::path GetBlockPosFilename(const FlatFilePos &pos)
Translation to a filesystem path.
static const unsigned int UNDOFILE_CHUNK_SIZE
The pre-allocation chunk size for rev?????.dat files (since 0.8)
FlatFileSeq UndoFileSeq()
FlatFileSeq represents a sequence of numbered files storing raw data.