[#BlockFilter-2constructor-02e]
= xref:BlockFilter.adoc[BlockFilter]::BlockFilter
:relfileprefix: ../
:mrdocs:

Constructors

== Synopses

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

Construct an empty BlockFilter&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:BlockFilter/2constructor-0f.adoc[BlockFilter]() = default;
----

[.small]#xref:BlockFilter/2constructor-0f.adoc[_» more&period;&period;&period;_]#

Construct a new BlockFilter of the specified type from a block&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BlockFilter/2constructor-04.adoc[BlockFilter](
    xref:BlockFilterType.adoc[BlockFilterType] filter&lowbar;type,
    xref:CBlock.adoc[CBlock] const& block,
    xref:CBlockUndo.adoc[CBlockUndo] const& block&lowbar;undo);
----

[.small]#xref:BlockFilter/2constructor-04.adoc[_» more&period;&period;&period;_]#

Reconstruct a BlockFilter from parts&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BlockFilter/2constructor-025.adoc[BlockFilter](
    xref:BlockFilterType.adoc[BlockFilterType] filter&lowbar;type,
    xref:uint256.adoc[uint256] const& block&lowbar;hash,
    std::vector&lt;unsigned char&gt; filter,
    bool skip&lowbar;decode&lowbar;check);
----

[.small]#xref:BlockFilter/2constructor-025.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *filter&lowbar;type*
| The type of filter to build&period;
| *block*
| The block to build the filter from&period;
| *block&lowbar;undo*
| Undo data for the block, providing spent outputs&period;
| *block&lowbar;hash*
| Hash of the block this filter is for&period;
| *filter*
| The serialized filter contents&period;
| *skip&lowbar;decode&lowbar;check*
| If true, skip validating the encoded filter&period;
|===


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