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§
- Error returned when a sequence number is parsed as a lock time, but its “disable” flag is set.
- A relative lock time lock-by-blockheight value.
- Tried to satisfy a lock-by-blocktime lock using a height value.
- Tried to satisfy a lock-by-blockheight lock using a time value.
- A relative lock time lock-by-blocktime value.
- Input time in seconds was too large to be encoded to a 16 bit 512 second interval.
Enums§
- A relative lock time value, representing either a block height or time (512 second intervals).