@@ -18,7 +18,6 @@ module Cardano.Node.Protocol.Cardano
1818
1919import Cardano.Api.Any (Error (.. ))
2020import qualified Cardano.Chain.Update as Byron
21- import qualified Cardano.Ledger.Api.Era as L
2221import qualified Cardano.Ledger.Api.Transition as SL
2322import Cardano.Ledger.BaseTypes
2423import Cardano.Ledger.Dijkstra.PParams
@@ -89,7 +88,7 @@ mkConsensusProtocolCardano
8988 }
9089 npcDijkstraProtocolConfig
9190 NodeHardForkProtocolConfiguration
92- { npcTestEnableDevelopmentHardForkEras = _
91+ { npcTestEnableDevelopmentHardForkEras
9392 , -- During testing of the latest unreleased era, we conditionally
9493 -- declared that we knew about it. We do so only when a config option
9594 -- for testing development/unstable eras is used. This lets us include
@@ -254,7 +253,13 @@ mkConsensusProtocolCardano
254253 }
255254 transitionLedgerConfig
256255 emptyCheckpointsMap
257- (ProtVer (L. eraProtVerHigh @ L. LatestKnownEra ) 0 )
256+ -- IMPORTANT: this Protver below has to be kept in sync with the values
257+ -- used in the node in cardano-node/src/Cardano/Node/Protocol/Cardano.hs
258+ -- in function mkSomeConsensusProtocolCardano.
259+ ( if npcTestEnableDevelopmentHardForkEras
260+ then ProtVer (natVersion @ 11 ) 0
261+ else ProtVer (natVersion @ 10 ) 7
262+ )
258263
259264-- | An empty Dijkstra genesis to be provided when none is specified in the config.
260265emptyDijkstraGenesis :: SL. DijkstraGenesis
0 commit comments