Skip to content

Commit

Permalink
Enforce the right size on Shelley Ledger Config cbor instance
Browse files Browse the repository at this point in the history
  • Loading branch information
jasagredo committed Mar 4, 2025
1 parent 2834a42 commit d571eb3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ instance (NoHardForks (ShelleyBlock proto era), ShelleyCompatible proto era)
instance ShelleyBasedEra era
=> SerialiseNodeToClient (ShelleyBlock proto era) (ShelleyPartialLedgerConfig era) where
decodeNodeToClient ccfg version = do
enforceSize "ShelleyPartialLedgerConfig era" 14
enforceSize "ShelleyPartialLedgerConfig era" 13
ShelleyPartialLedgerConfig
<$> ( ShelleyLedgerConfig
<$> fromCBOR @CompactGenesis
Expand Down Expand Up @@ -256,7 +256,7 @@ instance ShelleyBasedEra era
)
triggerHardFork
)
= encodeListLen 14
= encodeListLen 13
<> toCBOR @CompactGenesis myCompactGenesis
<> toCBOR @Word64 slotsPerKESPeriod'
<> toCBOR @Word64 stabilityWindow'
Expand Down

0 comments on commit d571eb3

Please sign in to comment.