| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Ouroboros.Consensus.Shelley.Ledger.Query.LegacyShelleyGenesis
Documentation
newtype LegacyShelleyGenesis Source #
The encoding of the PParams changed in node 10.5.
We can delete this once we cross a HF.
Constructors
| LegacyShelleyGenesis | |
Fields | |
Instances
| FromCBOR LegacyShelleyGenesis Source # | |
| ToCBOR LegacyShelleyGenesis Source # | |
Defined in Ouroboros.Consensus.Shelley.Ledger.Query.LegacyShelleyGenesis Methods toCBOR ∷ LegacyShelleyGenesis → Encoding Source # encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy LegacyShelleyGenesis → Size Source # encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [LegacyShelleyGenesis] → Size Source # | |
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.
decodeShelleyGenesisNoExtraConfig ∷ Decoder s ShelleyGenesis Source #
Decode ShelleyGenesis from the 15 fields written by
encodeShelleyGenesisNoExtraConfig.