[#SpendsNonAnchorWitnessProg]
= SpendsNonAnchorWitnessProg
:mrdocs:

Check whether this transaction spends any witness program but P2A, including not&hyphen;yet&hyphen;defined ones&period; May return `false` early for consensus&hyphen;invalid transactions&period;

== Synopsis

Declared in `&lt;policy&sol;policy&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
SpendsNonAnchorWitnessProg(
    xref:CTransaction.adoc[CTransaction] const& tx,
    xref:CCoinsViewCache.adoc[CCoinsViewCache] const& prevouts);
----

== Return Value

True if the transaction spends a non&hyphen;anchor witness program&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *tx*
| Transaction to inspect&period;
| *prevouts*
| View providing the outputs spent by the transaction&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
