Constructors

Synopses

Declared in <merkleblock.h>

Construct an empty merkle block.

constexpr
CMerkleBlock() = default;

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

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

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

Parameters

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.

Created with MrDocs