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

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

== Synopsis

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

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

== 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;
|===


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