Skip to content

Commit

Permalink
Use TestEnableDevelopmentHardForkEras to gate-keep Conway
Browse files Browse the repository at this point in the history
  • Loading branch information
newhoggy committed Mar 17, 2023
1 parent 3ca7578 commit 3d50f70
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cardano-node/src/Cardano/Node/Protocol/Cardano.hs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ mkSomeConsensusProtocolCardano NodeByronProtocolConfiguration {
npcConwayGenesisFileHash
}
NodeHardForkProtocolConfiguration {
-- npcTestEnableDevelopmentHardForkEras,
npcTestEnableDevelopmentHardForkEras,
-- During testing of the Alonzo era, we conditionally declared that we
-- knew about the Alonzo era. We do so only when a config option for
-- testing development/unstable eras is used. This lets us include
Expand Down Expand Up @@ -233,7 +233,10 @@ mkSomeConsensusProtocolCardano NodeByronProtocolConfiguration {
-- version that this node will declare that it understands, when it
-- is in the Babbage era. Since Babbage is currently the last known
-- protocol version then this is also the Babbage protocol version.
Praos.conwayProtVer = ProtVer 9 0,
Praos.conwayProtVer =
if npcTestEnableDevelopmentHardForkEras
then ProtVer 9 0
else ProtVer 8 0,
Praos.conwayMaxTxCapacityOverrides =
TxLimits.mkOverrides TxLimits.noOverridesMeasure
}
Expand Down

0 comments on commit 3d50f70

Please sign in to comment.