ouroboros-consensus-0.1.0.1: Consensus layer for the Ouroboros blockchain protocol
Safe Haskell None
Language Haskell2010

Ouroboros.Consensus.HardFork.History.EpochInfo

Description

Synopsis

Documentation

dummyEpochInfo :: EpochInfo ( Except PastHorizonException ) Source #

A dummy EpochInfo that always throws an error .

To be used as a placeholder before a summary is available.

summaryToEpochInfo :: forall xs. Summary xs -> EpochInfo ( Except PastHorizonException ) Source #

Construct an EpochInfo for a snapshot of the ledger state

toPureEpochInfo :: Applicative f => EpochInfo ( Except PastHorizonException ) -> EpochInfo f Source #

Interpret the PastHorizonException as a _pure exception_ via throw

As per usual, this should only be used when the pure exception would indicate a bug.