Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data family ConsensusConfig p
- newtype LeaderSchedule = LeaderSchedule {}
- data WithLeaderSchedule p
- leaderScheduleFor ∷ CoreNodeId → LeaderSchedule → Set SlotNo
Documentation
data family ConsensusConfig p Source #
Static configuration required to run the consensus protocol
Every method in the ConsensusProtocol
class takes the consensus
configuration as a parameter, so having this as a data family rather than a
type family resolves most ambiguity.
Defined out of the class so that protocols can define this type without having to define the entire protocol at the same time (or indeed in the same module).
Instances
newtype LeaderSchedule Source #
Instances
data WithLeaderSchedule p Source #
Extension of protocol p
by a static leader schedule.
Instances
leaderScheduleFor ∷ CoreNodeId → LeaderSchedule → Set SlotNo Source #
The Slots
a given node is supposed to lead in