| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Ouroboros.Consensus.Mock.Ledger.Block.PraosRule
Description
Test the Praos chain selection rule (with explicit leader schedule)
Synopsis
- data PraosCryptoUnused
- type SimplePraosRuleBlock c = SimpleBlock c SimplePraosRuleExt
- newtype SimplePraosRuleExt = SimplePraosRuleExt {}
- type SimplePraosRuleHeader c = SimpleHeader c SimplePraosRuleExt
- forgePraosRuleExt ∷ SimpleCrypto c ⇒ ForgeExt c SimplePraosRuleExt
Documentation
data PraosCryptoUnused Source #
Instances
| PraosCrypto PraosCryptoUnused Source # | |||||||||||||
Defined in Ouroboros.Consensus.Mock.Ledger.Block.PraosRule Associated Types
| |||||||||||||
| type PraosHash PraosCryptoUnused Source # | |||||||||||||
| type PraosKES PraosCryptoUnused Source # | |||||||||||||
| type PraosVRF PraosCryptoUnused Source # | |||||||||||||
type SimplePraosRuleBlock c = SimpleBlock c SimplePraosRuleExt Source #
Simple block extended with the fields required for Praos
c is crypto used for the block itself
With an explicit leader schedule we need no crypto for the consensus protocol.
This is an example of a block which is not an instance of SignedBlock.
newtype SimplePraosRuleExt Source #
Required extension
The WithLeaderSchedule doesn't require anything in the block header.
We add the CoreNodeId just so that we can check that the schedule matches
the chain.
Constructors
| SimplePraosRuleExt | |
Fields | |
Instances
type SimplePraosRuleHeader c = SimpleHeader c SimplePraosRuleExt Source #
Header for Proas