CMerkleBlock::CMerkleBlock

Constructors

Synopses

Declared in <merkleblock.h>

Construct an empty merkle block.

constexpr
CMerkleBlock() = default;
» 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.

CMerkleBlock(
    CBlock const& block,
    CBloomFilter& filter);
» more...

Create from a CBlock, matching the txids in the set.

CMerkleBlock(
    CBlock const& block,
    std::set<Txid> const& txids);
» more...

Parameters

NameDescription
blockThe block to build the merkle proof from.
filterThe bloom filter selecting which transactions to include; updated per transaction.
txidsThe set of transaction ids to include in the proof.