ouroboros-consensus-0.1.0.0: Consensus layer for the Ouroboros blockchain protocol
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Consensus.HardFork.History.EpochInfo

Description

Derive EpochInfo

Synopsis

Documentation

dummyEpochInfoEpochInfo (Except PastHorizonException) Source #

A dummy EpochInfo that always throws an error.

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

interpreterToEpochInfo ∷ ∀ xs. Interpreter xs → EpochInfo (Except PastHorizonException) Source #

Construct an EpochInfo for a snapshot of the ledger state

summaryToEpochInfo ∷ ∀ xs. Summary xs → EpochInfo (Except PastHorizonException) Source #

Construct an EpochInfo for a snapshot of the ledger state

toPureEpochInfoApplicative 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.