Store block on disk and update block file statistics.
Declared in <node/blockstorage.h>
[[requires_capability(0x7f95130c94f8), requires_capability(0x7f950163c7e8), requires_capability(0x7f95241d97d8), requires_capability(0x7f951f330ad8), requires_capability(0x7f950b9c2a98), requires_capability(0x7f95175c51e8)]]
FlatFilePos
WriteBlock(
CBlock const& block,
int nHeight);
in case of success, the position to which the block was written to in case of an error, an empty FlatFilePos
| Name | Description |
|---|---|
| block [in] | the block to be stored |
| nHeight [in] | the height of the block |