[#node-BlockManager-ReadBlock-02] = xref:node.adoc[node]::xref:node/BlockManager.adoc[BlockManager]::ReadBlock :relfileprefix: ../../ :mrdocs: `ReadBlock` overloads == Synopses Declared in `<node/blockstorage.h>` Read a block from disk using its block index entry. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:node/BlockManager/ReadBlock-09.adoc[ReadBlock]( xref:CBlock.adoc[CBlock]& block, xref:CBlockIndex.adoc[CBlockIndex] const& index) const; ---- [.small]#xref:node/BlockManager/ReadBlock-09.adoc[_» more..._]# Functions for disk access for blocks [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool xref:node/BlockManager/ReadBlock-00.adoc[ReadBlock]( xref:CBlock.adoc[CBlock]& block, xref:FlatFilePos.adoc[FlatFilePos] const& pos, std::optional<uint256> const& expected_hash) const; ---- [.small]#xref:node/BlockManager/ReadBlock-00.adoc[_» more..._]# == Return Value * True on success, false if the block could not be read. * 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. | *index* | The block index entry identifying the block to read. | *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]#