| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Ouroboros.Consensus.Peras.Protocol
Synopsis
- data PerasLedgerView = MkPerasLedgerView {}
- class ConsensusProtocol p ⇒ PerasProtocol p where
- getPerasLedgerView ∷ proxy p → LedgerView p → Maybe PerasLedgerView
- defaultGetPerasLedgerView ∷ proxy p → LedgerView p → Maybe PerasLedgerView
Documentation
data PerasLedgerView Source #
The Peras parameters a ledger view carries.
Constructors
| MkPerasLedgerView | |
Instances
class ConsensusProtocol p ⇒ PerasProtocol p where Source #
Methods
getPerasLedgerView ∷ proxy p → LedgerView p → Maybe PerasLedgerView Source #
The Peras parameters this ledger view carries, or Nothing if the
protocol has no Peras.
Instances
| (CanHardFork xs, All SingleEraBlockAndPerasProtocol xs) ⇒ PerasProtocol (HardForkProtocol xs) Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.Protocol Methods getPerasLedgerView ∷ proxy (HardForkProtocol xs) → LedgerView (HardForkProtocol xs) → Maybe PerasLedgerView Source # | |
| BftCrypto c ⇒ PerasProtocol (Bft c) Source # | |
Defined in Ouroboros.Consensus.Protocol.BFT Methods getPerasLedgerView ∷ proxy (Bft c) → LedgerView (Bft c) → Maybe PerasLedgerView Source # | |
| PBftCrypto c ⇒ PerasProtocol (PBft c) Source # | |
Defined in Ouroboros.Consensus.Protocol.PBFT Methods getPerasLedgerView ∷ proxy (PBft c) → LedgerView (PBft c) → Maybe PerasLedgerView Source # | |
defaultGetPerasLedgerView ∷ proxy p → LedgerView p → Maybe PerasLedgerView Source #
getPerasLedgerView for a protocol that has no Peras.