Skip to content

Commit 54dce3a

Browse files
committed
Use TestEnableDevelopmentHardForkEras to gate-keep Conway
1 parent 6de3890 commit 54dce3a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

+5-2
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ mkSomeConsensusProtocolCardano NodeByronProtocolConfiguration {
9090
npcConwayGenesisFileHash
9191
}
9292
NodeHardForkProtocolConfiguration {
93-
-- npcTestEnableDevelopmentHardForkEras,
93+
npcTestEnableDevelopmentHardForkEras,
9494
-- During testing of the Alonzo era, we conditionally declared that we
9595
-- knew about the Alonzo era. We do so only when a config option for
9696
-- testing development/unstable eras is used. This lets us include
@@ -233,7 +233,10 @@ mkSomeConsensusProtocolCardano NodeByronProtocolConfiguration {
233233
-- version that this node will declare that it understands, when it
234234
-- is in the Babbage era. Since Babbage is currently the last known
235235
-- protocol version then this is also the Babbage protocol version.
236-
Praos.conwayProtVer = ProtVer 9 0,
236+
Praos.conwayProtVer =
237+
if npcTestEnableDevelopmentHardForkEras
238+
then ProtVer 9 0
239+
else ProtVer 8 0,
237240
Praos.conwayMaxTxCapacityOverrides =
238241
TxLimits.mkOverrides TxLimits.noOverridesMeasure
239242
}

0 commit comments

Comments
 (0)