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

Synopsis

Declared in <node/blockstorage.h>

[[requires_capability(0x7fbc8f17b358), requires_capability(0x7fbca3f04888), requires_capability(0x7fbcace16ad8), requires_capability(0x7fbca6c58748), requires_capability(0x7fbcad35fee8), requires_capability(0x7fbc9fba1ca8)]]
void
UpdateBlockInfo(
    CBlock const& block,
    unsigned int nHeight,
    FlatFilePos const& pos);

Parameters

Name

Description

block [in]

the block being processed

nHeight [in]

the height of the block

pos [in]

the position of the serialized CBlock on disk

Created with MrDocs