Skip to content

Commit c276946

Browse files
committed
Fixup Protocol version in db-synthesizer
1 parent 7908694 commit c276946

File tree

1 file changed

+8
-3
lines changed
  • ouroboros-consensus-cardano/src/unstable-cardano-tools/Cardano/Node/Protocol

1 file changed

+8
-3
lines changed

ouroboros-consensus-cardano/src/unstable-cardano-tools/Cardano/Node/Protocol/Cardano.hs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ module Cardano.Node.Protocol.Cardano
1818

1919
import Cardano.Api.Any (Error (..))
2020
import qualified Cardano.Chain.Update as Byron
21-
import qualified Cardano.Ledger.Api.Era as L
2221
import qualified Cardano.Ledger.Api.Transition as SL
2322
import Cardano.Ledger.BaseTypes
2423
import 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.
260265
emptyDijkstraGenesis :: SL.DijkstraGenesis

0 commit comments

Comments
 (0)