TaprootBuilder::AddOmitted

Like Add(), but for a Merkle node with a given hash to the tree.

Synopsis

Declared in <script/signingprovider.h>

TaprootBuilder&
AddOmitted(
    int depth,
    uint256 const& hash);

Return Value

A reference to this builder for chaining.

Parameters

NameDescription
depthThe depth in the Merkle tree to add the node at.
hashThe Merkle hash of the omitted subtree.