TaprootBuilder::ValidDepths

Check if a list of depths is legal (will lead to IsComplete()).

Synopsis

Declared in <script/signingprovider.h>

static
bool
ValidDepths(std::vector<int> const& depths);

Return Value

True if the depths form a valid tree.

Parameters

NameDescription
depthsThe leaf depths in depth-first order.