| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Ouroboros.Consensus.Protocol.LeaderSchedule
Synopsis
- newtype LeaderSchedule = LeaderSchedule {}
- leaderScheduleFor :: CoreNodeId -> LeaderSchedule -> Set SlotNo
- data WithLeaderSchedule p
- data family ConsensusConfig p :: Type
Documentation
newtype LeaderSchedule Source #
Constructors
| LeaderSchedule | |
Fields | |
Instances
leaderScheduleFor :: CoreNodeId -> LeaderSchedule -> Set SlotNo Source #
The Slots a given node is supposed to lead in
data WithLeaderSchedule p Source #
Extension of protocol p by a static leader schedule.
Instances
data family ConsensusConfig p :: Type 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).