| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Ouroboros.Consensus.Shelley.Ledger.Query.LegacyShelleyGenesis
Documentation
encodeShelleyGenesisNoExtraConfig ∷ ShelleyGenesis → Encoding Source #
Encode ShelleyGenesis with 15 fields, and drop sgExtraConfig.
cardano-ledger-shelley 1.19.0.0 added sgExtraConfig and grew the CBOR record
from 15 fields to 16, with no version guard.
This codec keeps the 15-field encoding of cardano-ledger-shelley 1.18.
compactGenesis erases
sgExtraConfig, so the query answer never carries a value for it.
decodeShelleyGenesisNoExtraConfig ∷ Decoder s ShelleyGenesis Source #
Decode ShelleyGenesis from the 15 fields written by
encodeShelleyGenesisNoExtraConfig.