| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Ouroboros.Consensus.Ledger.SupportsPeras
Synopsis
- class LedgerSupportsPeras blk where
- getLatestPerasCertRound ∷ ∀ (mk ∷ MapKind). LedgerState blk mk → Maybe PerasRoundNo
Documentation
class LedgerSupportsPeras blk where Source #
Extract Peras information stored in the ledger state
Minimal complete definition
Nothing
Methods
getLatestPerasCertRound ∷ ∀ (mk ∷ MapKind). LedgerState blk mk → Maybe PerasRoundNo Source #
Extract the round number of the latest Peras certificate stored in the given ledger state (if any). This is needed to coordinate the end of a cooldown period.
default getLatestPerasCertRound ∷ ∀ (mk ∷ MapKind). LedgerState blk mk → Maybe PerasRoundNo Source #
Instances
| CanHardFork xs ⇒ LedgerSupportsPeras (HardForkBlock xs) Source # | |
Defined in Ouroboros.Consensus.HardFork.Combinator.Basics Methods getLatestPerasCertRound ∷ ∀ (mk ∷ MapKind). LedgerState (HardForkBlock xs) mk → Maybe PerasRoundNo Source # | |