Safe Haskell | None |
---|---|
Language | Haskell2010 |
Ouroboros.Consensus.Shelley.Ledger.Query.LegacyPParams
Synopsis
- newtype LegacyPParams era = LegacyPParams {
- unLegacyPParams ∷ PParams era
- decodeLegacyPParams ∷ FromCBOR (LegacyPParams era) ⇒ Decoder s (PParams era)
- encodeLegacyPParams ∷ ToCBOR (LegacyPParams era) ⇒ PParams era → Encoding
Documentation
newtype LegacyPParams era Source #
After node 10.5, Ledger started encoding the protocol version in a TList instead of as two contiguous terms. These codecs respect the old version.
This can be deleted once we cross a hard fork.
Constructors
LegacyPParams | |
Fields
|
Instances
decodeLegacyPParams ∷ FromCBOR (LegacyPParams era) ⇒ Decoder s (PParams era) Source #
encodeLegacyPParams ∷ ToCBOR (LegacyPParams era) ⇒ PParams era → Encoding Source #