Check whether this transaction spends any witness program but P2A, including not‐yet‐defined ones. May return false early for consensus‐invalid transactions.

Synopsis

Declared in <policy/policy.h>

bool
SpendsNonAnchorWitnessProg(
    CTransaction const& tx,
    CCoinsViewCache const& prevouts);

Return Value

True if the transaction spends a non‐anchor witness program.

Parameters

Name

Description

tx

Transaction to inspect.

prevouts

View providing the outputs spent by the transaction.

Created with MrDocs