Store block on disk and update block file statistics.

Synopsis

Declared in <node/blockstorage.h>

[[requires_capability(0x7ff37af16d18), requires_capability(0x7ff376b83cf8), requires_capability(0x7ff37ded18e8), requires_capability(0x7ff36c616b08), requires_capability(0x7ff37c49a968), requires_capability(0x7ff39283d368)]]
FlatFilePos
WriteBlock(
    CBlock const& block,
    int nHeight);

Return Value

in case of success, the position to which the block was written to in case of an error, an empty FlatFilePos

Parameters

Name

Description

block [in]

the block to be stored

nHeight [in]

the height of the block

Created with MrDocs