Expand description
Epoch logic used by tempo.
All logic is written with the assumption that there are at least 3 heights per epoch. Having less heights per epoch will not immediately break the logic, but it might lead to strange behavior and is not supported.
Note that either way, 3 blocks per epoch is a highly unreasonable number.
Modulesยง
- manager ๐
- scheme_
provider ๐ - Epoch aware schemes and peers.
Enumsยง
- Relative
Position ๐ - The relative position of in an epoch.
Functionsยง
- is_
first_ ๐block_ in_ epoch - Returns
Some(epoch)ifheightis the last block in an epoch ofepoch_length. - relative_
position ๐ - Returns the relative position of
heightin an epoch givenepoch_length.