[#PeerManager-FetchBlock] = xref:PeerManager.adoc[PeerManager]::FetchBlock :relfileprefix: ../ :mrdocs: Attempt to manually fetch block from a given peer. We must already have the header. == Synopsis Declared in `<net_processing.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual xref:util/Expected-0b.adoc[util::Expected<void, std::string>] FetchBlock( xref:NodeId-08.adoc[NodeId] peer_id, xref:CBlockIndex.adoc[CBlockIndex] const& block_index) = 0; ---- == Return Value An empty result on success, or an error message describing why the fetch could not be started. == Parameters [cols="1,4"] |=== | Name| Description | *peer_id* [in] | The peer id | *block_index* [in] | The blockindex |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#