Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Ledger fixed/changed the serialisation of PParams
in a
backwards-incompatible way in
https://github.com/IntersectMBO/ouroboros-network/pull/4349/.
This module contains the legacy serialisation in order to keep compatibility with applications (like cardano-cli or Ogmios) that still use the old serialisation logic. We use the negotiated node-to-client version to detect when the client does not yet support the fixed serialisation.
This module can be removed once the next HF (Conway) has happened.
Documentation
newtype LegacyPParams era Source #
Instances
decodeLegacyPParams ∷ FromCBOR (LegacyPParams era) ⇒ Decoder s (PParams era) Source #
encodeLegacyPParams ∷ ToCBOR (LegacyPParams era) ⇒ PParams era → Encoding Source #