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(0x7ff37af16de8), requires_capability(0x7ff376b83dc8), requires_capability(0x7ff37ded19b8), requires_capability(0x7ff36c616bd8), requires_capability(0x7ff37c49aa38), requires_capability(0x7ff39283d438)]]
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