ouroboros-consensus-0.18.0.0: Consensus layer for the Ouroboros blockchain protocol
Safe HaskellSafe-Inferred
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

toPureEpochInfoEpochInfo (Except PastHorizonException) → EpochInfo Identity 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.