ouroboros-consensus-0.24.0.0: Consensus layer for the Ouroboros blockchain protocol
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ouroboros.Consensus.HardFork.Combinator.Abstract.NoHardForks

Synopsis

Documentation

class ImmutableEraParams blk where Source #

A block type for which the EraParams will never change

Technically, some application of HardForkBlock could have an instance for this. But that would only be appropriate if two conditions were met.

  • all the eras in that block have the same EraParams
  • all eras that will ever be added to that block in the future will also have those same EraParams

Methods

immutableEraParamsTopLevelConfig blk → EraParams Source #

Extract EraParams from the top-level config

The HFC itself does not care about this, as it must be given the full shape across all eras.

class (SingleEraBlock blk, ImmutableEraParams blk) ⇒ NoHardForks blk where Source #

Methods

toPartialLedgerConfig ∷ proxy blk → LedgerConfig blk → PartialLedgerConfig blk Source #

Construct partial ledger config from full ledger config

See also toPartialConsensusConfig