node::BlockManager::OpenBlockFile

Open a block file (blk?????.dat)

Synopsis

Declared in <node/blockstorage.h>

AutoFile
OpenBlockFile(
    FlatFilePos const& pos,
    bool fReadOnly) const;

Return Value

An open file handle for the block file.

Parameters

NameDescription
posPosition identifying the block file and offset.
fReadOnlyWhether to open the file read-only.