Skip to content

Commit 78f2bf2

Browse files
committed
Fix protocol version in configuration
1 parent eb8407f commit 78f2bf2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

cardano-node/src/Cardano/Node/Protocol/Cardano.hs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ mkSomeConsensusProtocolCardano NodeByronProtocolConfiguration {
100100
npcTestAlonzoHardForkAtEpoch,
101101
npcTestBabbageHardForkAtEpoch,
102102
npcTestConwayHardForkAtEpoch,
103-
npcTestDijkstraHardForkAtEpoch
103+
npcTestDijkstraHardForkAtEpoch,
104+
npcExperimentalHardForksEnabled
104105
}
105106
checkpointsConfiguration
106107
files = do
@@ -177,7 +178,9 @@ mkSomeConsensusProtocolCardano NodeByronProtocolConfiguration {
177178
shelleyGenesisHash,
178179
shelleyBasedLeaderCredentials = shelleyLeaderCredentials
179180
}
180-
, Consensus.cardanoProtocolVersion = ProtVer (natVersion @10) 7
181+
, Consensus.cardanoProtocolVersion = if npcExperimentalHardForksEnabled
182+
then ProtVer (natVersion @11) 0
183+
else ProtVer (natVersion @10) 7
181184
-- The remaining arguments specify the parameters needed to transition between two eras
182185
, Consensus.cardanoLedgerTransitionConfig =
183186
Ledger.mkLatestTransitionConfig

0 commit comments

Comments
 (0)