Available on crate feature
alloc
only.Expand description
Block height and interval types.
These types are thin wrappers around u32
, no invariants implemented or implied.
These are general types for abstracting over block heights, they are not designed to use with
lock times. If you are creating lock times you should be using the
locktime::absolute::Height
and locktime::relative::Height
types.
The difference between these types and the locktime types is that these types are thin wrappers whereas the locktime types contain more complex locktime specific abstractions.
Structsยง
- The block height, zero denotes the genesis block.
- The block interval.
- Error returned when the block interval is too big to be used as a relative lock time.