[#node-BlockManager-ReadBlock-00] = xref:node.adoc[node]::xref:node/BlockManager.adoc[BlockManager]::ReadBlock :relfileprefix: ../../ :mrdocs: Functions for disk access for blocks == Synopsis Declared in `<node/blockstorage.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool ReadBlock( xref:CBlock.adoc[CBlock]& block, xref:FlatFilePos.adoc[FlatFilePos] const& pos, std::optional<uint256> const& expected_hash) const; ---- == Return Value True on success, false if the block could not be read or verified. == Parameters [cols="1,4"] |=== | Name| Description | *block* | Output filled with the deserialized block. | *pos* | Position of the serialized block on disk. | *expected_hash* | Expected block hash used to verify the read, if provided. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#