[#SequenceLocks]
= SequenceLocks
:mrdocs:

Check if transaction is final per BIP 68 sequence numbers and can be included in a block&period; Consensus critical&period; Takes as input a list of heights at which tx&apos;s inputs (in order) confirmed&period;

== Synopsis

Declared in `&lt;consensus&sol;tx&lowbar;verify&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
SequenceLocks(
    xref:CTransaction.adoc[CTransaction] const& tx,
    int flags,
    std::vector&lt;int&gt;& prevHeights,
    xref:CBlockIndex.adoc[CBlockIndex] const& block);
----

== Return Value

true if tx satisfies its BIP 68 sequence locks for block&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *tx*
| The transaction to test against its sequence locks&period;
| *flags*
| Lock&hyphen;time verification flags controlling BIP 68 enforcement&period;
| *prevHeights*
| Confirmation height of each of tx&apos;s inputs, in order&period;
| *block*
| Block in which tx would be included&period;
|===


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