[#IsConsistentPackage]
= IsConsistentPackage
:mrdocs:

Checks that these transactions don&apos;t conflict, i&period;e&period;, spend the same prevout&period; This includes checking that there are no duplicate transactions&period; Since these checks require looking at the inputs of a transaction, returns false immediately if any transactions have empty vin&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
IsConsistentPackage(xref:Package.adoc[Package] const& txns);
----

== Description

Does not check consistency of a transaction with oneself&semi; does not check if a transaction spends the same prevout multiple times (see bad&hyphen;txns&hyphen;inputs&hyphen;duplicate in CheckTransaction())&period;

== Return Value

true if there are no conflicts&period; False if any two transactions spend the same prevout&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *txns*
| Transactions in the package to check for conflicts&period;
|===


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