ouroboros-consensus
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Consensus.Ledger.SupportsPeras

Synopsis

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.

Instances

Instances details
CanHardFork xs ⇒ LedgerSupportsPeras (HardForkBlock xs) Source # 
Instance details

Defined in Ouroboros.Consensus.HardFork.Combinator.Basics