@@ -90,7 +90,7 @@ mkSomeConsensusProtocolCardano NodeByronProtocolConfiguration {
90
90
npcConwayGenesisFileHash
91
91
}
92
92
NodeHardForkProtocolConfiguration {
93
- -- npcTestEnableDevelopmentHardForkEras,
93
+ npcTestEnableDevelopmentHardForkEras,
94
94
-- During testing of the Alonzo era, we conditionally declared that we
95
95
-- knew about the Alonzo era. We do so only when a config option for
96
96
-- testing development/unstable eras is used. This lets us include
@@ -233,7 +233,10 @@ mkSomeConsensusProtocolCardano NodeByronProtocolConfiguration {
233
233
-- version that this node will declare that it understands, when it
234
234
-- is in the Babbage era. Since Babbage is currently the last known
235
235
-- 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 ,
237
240
Praos. conwayMaxTxCapacityOverrides =
238
241
TxLimits. mkOverrides TxLimits. noOverridesMeasure
239
242
}
@@ -257,6 +260,8 @@ mkSomeConsensusProtocolCardano NodeByronProtocolConfiguration {
257
260
-- Version 5 is Alonzo
258
261
-- Version 6 is Alonzo (intra era hardfork)
259
262
-- Version 7 is Babbage
263
+ -- Version 8 is Babbage (intra era hardfork)
264
+ -- Version 9 is Conway
260
265
--
261
266
-- But we also provide an override to allow for simpler test setups
262
267
-- such as triggering at the 0 -> 1 transition .
@@ -311,11 +316,16 @@ mkSomeConsensusProtocolCardano NodeByronProtocolConfiguration {
311
316
transitionTrigger =
312
317
case npcTestConwayHardForkAtEpoch of
313
318
Nothing -> Consensus. TriggerHardForkAtVersion
314
- (maybe 8 fromIntegral npcTestConwayHardForkAtVersion)
319
+ (maybe 9 fromIntegral npcTestConwayHardForkAtVersion)
315
320
Just epochNo -> Consensus. TriggerHardForkAtEpoch epochNo
316
321
317
322
}
318
323
324
+ ----------------------------------------------------------------------
325
+ -- WARNING When adding new entries above, be aware that if there is an
326
+ -- intra-era fork, then the numbering is not consecutive.
327
+ ----------------------------------------------------------------------
328
+
319
329
------------------------------------------------------------------------------
320
330
-- Errors
321
331
--
0 commit comments