Check whether this transaction spends any witness program but P2A, including not-yet-defined ones. May return false early for consensus-invalid transactions.
Declared in <policy/policy.h>
bool
SpendsNonAnchorWitnessProg(
CTransaction const& tx,
CCoinsViewCache const& prevouts);
True if the transaction spends a non-anchor witness program.
| Name | Description |
|---|---|
| tx | Transaction to inspect. |
| prevouts | View providing the outputs spent by the transaction. |