[#BlockFilter-2constructor-02e] = xref:BlockFilter.adoc[BlockFilter]::BlockFilter :relfileprefix: ../ :mrdocs: Constructors == Synopses Declared in `<blockfilter.h>` Construct an empty BlockFilter. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr xref:BlockFilter/2constructor-0f.adoc[BlockFilter]() = default; ---- [.small]#xref:BlockFilter/2constructor-0f.adoc[_» more..._]# Construct a new BlockFilter of the specified type from a block. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BlockFilter/2constructor-04.adoc[BlockFilter]( xref:BlockFilterType.adoc[BlockFilterType] filter_type, xref:CBlock.adoc[CBlock] const& block, xref:CBlockUndo.adoc[CBlockUndo] const& block_undo); ---- [.small]#xref:BlockFilter/2constructor-04.adoc[_» more..._]# Reconstruct a BlockFilter from parts. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BlockFilter/2constructor-025.adoc[BlockFilter]( xref:BlockFilterType.adoc[BlockFilterType] filter_type, xref:uint256.adoc[uint256] const& block_hash, std::vector<unsigned char> filter, bool skip_decode_check); ---- [.small]#xref:BlockFilter/2constructor-025.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *filter_type* | The type of filter to build. | *block* | The block to build the filter from. | *block_undo* | Undo data for the block, providing spent outputs. | *block_hash* | Hash of the block this filter is for. | *filter* | The serialized filter contents. | *skip_decode_check* | If true, skip validating the encoded filter. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#