Store block on disk and update block file statistics.
Declared in <node/blockstorage.h>
[[requires_capability(0x7fd7532b0938), requires_capability(0x7fd74e9c7888), requires_capability(0x7fd75a26b5d8), requires_capability(0x7fd74f16ea58), requires_capability(0x7fd74a00e0f8), requires_capability(0x7fd753265a08)]]
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 |