[#PartiallyDownloadedBlock-InitData]
= xref:PartiallyDownloadedBlock.adoc[PartiallyDownloadedBlock]::InitData
:relfileprefix: ../
:mrdocs:

Initializes reconstruction from a compact block and a list of extra transactions&period;

== Synopsis

Declared in `&lt;blockencodings&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:ReadStatus.adoc[ReadStatus]
InitData(
    xref:CBlockHeaderAndShortTxIDs.adoc[CBlockHeaderAndShortTxIDs] const& cmpctblock,
    std::vector&lt;std::pair&lt;Wtxid, CTransactionRef&gt;&gt; const& extra&lowbar;txn);
----

== Return Value

A status code indicating whether initialization succeeded&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *cmpctblock*
| The received compact block to reconstruct from&period;
| *extra&lowbar;txn*
| Extra transactions to consider, as &lt;witness hash, reference&gt; pairs&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
