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

Fills the block with the supplied missing transactions and reports the result&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:ReadStatus.adoc[ReadStatus]
FillBlock(
    xref:CBlock.adoc[CBlock]& block,
    std::vector&lt;CTransactionRef&gt; const& vtx&lowbar;missing,
    bool segwit&lowbar;active);
----

== Return Value

A status code indicating whether the block was reconstructed&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *block*
| Output block assembled from available and supplied transactions&period;
| *vtx&lowbar;missing*
| The transactions that were requested and received&period;
| *segwit&lowbar;active*
| Whether to enforce witness mutation checks before success&period;
|===


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