[#CMerkleBlock-2constructor-09] = xref:CMerkleBlock.adoc[CMerkleBlock]::CMerkleBlock :relfileprefix: ../ :mrdocs: Constructors == Synopses Declared in `<merkleblock.h>` Construct an empty merkle block. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr xref:CMerkleBlock/2constructor-08.adoc[CMerkleBlock]() = default; ---- [.small]#xref:CMerkleBlock/2constructor-08.adoc[_» more..._]# Create from a CBlock, filtering transactions according to filter Note that this will call IsRelevantAndUpdate on the filter for each transaction, thus the filter will likely be modified. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:CMerkleBlock/2constructor-06.adoc[CMerkleBlock]( xref:CBlock.adoc[CBlock] const& block, xref:CBloomFilter.adoc[CBloomFilter]& filter); ---- [.small]#xref:CMerkleBlock/2constructor-06.adoc[_» more..._]# Create from a CBlock, matching the txids in the set. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:CMerkleBlock/2constructor-0a.adoc[CMerkleBlock]( xref:CBlock.adoc[CBlock] const& block, std::set<Txid> const& txids); ---- [.small]#xref:CMerkleBlock/2constructor-0a.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *block* | The block to build the merkle proof from. | *filter* | The bloom filter selecting which transactions to include; updated per transaction. | *txids* | The set of transaction ids to include in the proof. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#