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(0x7f95130c95c8), requires_capability(0x7f950163c8b8), requires_capability(0x7f95241d98a8), requires_capability(0x7f951f330ba8), requires_capability(0x7f950b9c2b68), requires_capability(0x7f95175c52b8)]]
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