node::BlockManager::UpdateBlockInfo

Update blockfile info while processing a block during reindex. The block must be available on disk.

Synopsis

Declared in <node/blockstorage.h>

[[requires_capability(0x7fb95f04d208), requires_capability(0x7fb969da6fc8), requires_capability(0x7fb96c563a18), requires_capability(0x7fb9857a0ad8), requires_capability(0x7fb96cb963e8), requires_capability(0x7fb95a5b9938)]]
void
UpdateBlockInfo(
    CBlock const& block,
    unsigned int nHeight,
    FlatFilePos const& pos);

Parameters

NameDescription
block [in]the block being processed
nHeight [in]the height of the block
pos [in]the position of the serialized CBlock on disk