CPartialMerkleTree::ExtractMatches

extract the matching txid's represented by this partial merkle tree and their respective indices within the partial tree. returns the merkle root, or 0 in case of failure

Synopsis

Declared in <merkleblock.h>

uint256
ExtractMatches(
    std::vector<Txid>& vMatch,
    std::vector<unsigned int>& vnIndex);

Return Value

The merkle root, or 0 in case of failure.

Parameters

NameDescription
vMatchOutput list of matched transaction ids.
vnIndexOutput list of the indices of the matched transactions within the tree.