ouroboros-consensus:cardano
Safe HaskellNone
LanguageHaskell2010

Ouroboros.Consensus.Shelley.Ledger.Query.LegacyShelleyGenesis

Synopsis

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.

encodeLegacyShelleyGenesis also writes 15 fields, but with the LegacyPParams encoding from before node 10.5.