[#node-BlockManager-WriteBlock] = xref:node.adoc[node]::xref:node/BlockManager.adoc[BlockManager]::WriteBlock :relfileprefix: ../../ :mrdocs: Store block on disk and update block file statistics. == Synopsis Declared in `<node/blockstorage.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[requires_capability(0x7f2e1b0994a8), requires_capability(0x7f2e26d1ac08), requires_capability(0x7f2e375e0ce8), requires_capability(0x7f2e333680a8), requires_capability(0x7f2e3542f098), requires_capability(0x7f2e28a73bf8)]] xref:FlatFilePos.adoc[FlatFilePos] WriteBlock( xref:CBlock.adoc[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 [cols="1,4"] |=== | Name| Description | *block* [in] | the block to be stored | *nHeight* [in] | the height of the block |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#