[#CTxIn-SEQUENCE_LOCKTIME_GRANULARITY]
= xref:CTxIn.adoc[CTxIn]::SEQUENCE&lowbar;LOCKTIME&lowbar;GRANULARITY
:relfileprefix: ../
:mrdocs:

In order to use the same number of bits to encode roughly the same wall&hyphen;clock duration, and because blocks are naturally limited to occur every 600s on average, the minimum granularity for time&hyphen;based relative lock&hyphen;time is fixed at 512 seconds&period; Converting from CTxIn&colon;&colon;nSequence to seconds is performed by multiplying by 512 &equals; 2&circ;9, or equivalently shifting up by 9 bits&period;

== Synopsis

Declared in `&lt;primitives&sol;transaction&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
inline constexpr static
int SEQUENCE&lowbar;LOCKTIME&lowbar;GRANULARITY = &lcub;9&rcub;;
----


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