Module relative
Expand description
Provides type LockTime
that implements the logic around nSequence/OP_CHECKSEQUENCEVERIFY.
There are two types of lock time: lock-by-blockheight and lock-by-blocktime, distinguished by
whether bit 22 of the u32
consensus value is set.
Structs§
- Disabled
Lock Time Error - Error returned when a sequence number is parsed as a lock time, but its “disable” flag is set.
- Height
- A relative lock time lock-by-blockheight value.
- Incompatible
Height Error - Tried to satisfy a lock-by-blocktime lock using a height value.
- Incompatible
Time Error - Tried to satisfy a lock-by-blockheight lock using a time value.
- Time
- A relative lock time lock-by-blocktime value.
- Time
Overflow Error - Input time in seconds was too large to be encoded to a 16 bit 512 second interval.
Enums§
- Lock
Time - A relative lock time value, representing either a block height or time (512 second intervals).