Skip to content

Commit 1e2c0fe

Browse files
committed
Enforce the right size on Shelley Ledger Config cbor instance
1 parent 82fe5e1 commit 1e2c0fe

File tree

1 file changed

+2
-2
lines changed
  • ouroboros-consensus-cardano/src/shelley/Ouroboros/Consensus/Shelley/Node

1 file changed

+2
-2
lines changed

ouroboros-consensus-cardano/src/shelley/Ouroboros/Consensus/Shelley/Node/Serialisation.hs

+2-2
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ instance (NoHardForks (ShelleyBlock proto era), ShelleyCompatible proto era)
214214
instance ShelleyBasedEra era
215215
=> SerialiseNodeToClient (ShelleyBlock proto era) (ShelleyPartialLedgerConfig era) where
216216
decodeNodeToClient ccfg version = do
217-
enforceSize "ShelleyPartialLedgerConfig era" 14
217+
enforceSize "ShelleyPartialLedgerConfig era" 13
218218
ShelleyPartialLedgerConfig
219219
<$> ( ShelleyLedgerConfig
220220
<$> fromCBOR @CompactGenesis
@@ -256,7 +256,7 @@ instance ShelleyBasedEra era
256256
)
257257
triggerHardFork
258258
)
259-
= encodeListLen 14
259+
= encodeListLen 13
260260
<> toCBOR @CompactGenesis myCompactGenesis
261261
<> toCBOR @Word64 slotsPerKESPeriod'
262262
<> toCBOR @Word64 stabilityWindow'

0 commit comments

Comments
 (0)