{-# LANGUAGE DefaultSignatures #-}
module Ouroboros.Consensus.Ledger.SupportsPeras
( LedgerSupportsPeras (..)
)
where
import Ouroboros.Consensus.Block.SupportsPeras (PerasRoundNo)
import Ouroboros.Consensus.Ledger.Abstract (LedgerState)
class LedgerSupportsPeras blk where
getLatestPerasCertRound :: LedgerState blk mk -> Maybe PerasRoundNo
default getLatestPerasCertRound :: LedgerState blk mk -> Maybe PerasRoundNo
getLatestPerasCertRound LedgerState blk mk
_ = Maybe PerasRoundNo
forall a. Maybe a
Nothing