Skip to content

Commit 543b267

Browse files
authored
Merge pull request #5099 from input-output-hk/newhoggy/fix-securityParam-and-epochLength
Fix epochLength and securityParam to conform to the formula 10 * k / f
2 parents 0b8893d + c31d391 commit 543b267

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cardano-testnet/src/Testnet/Babbage.hs

+2-2
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ babbageTestnet testnetOptions H.Conf {..} = do
179179
H.rewriteJsonFile (tempAbsPath </> "genesis/shelley/genesis.json") $ J.rewriteObject
180180
( HM.insert "slotLength" (toJSON @Double 0.1)
181181
. HM.insert "activeSlotsCoeff" (toJSON @Double 0.1)
182-
. HM.insert "securityParam" (toJSON @Int 10) -- TODO: USE config parameter
183-
. HM.insert "epochLength" (toJSON @Int 500)
182+
. HM.insert "securityParam" (toJSON @Int 6) -- TODO: USE config parameter
183+
. HM.insert "epochLength" (toJSON @Int 600) -- Should be "10 * k / f" where "k = securityParam, f = activeSlotsCoeff"
184184
. HM.insert "maxLovelaceSupply" (toJSON @Int 1000000000000)
185185
. HM.insert "minFeeA" (toJSON @Int 44)
186186
. HM.insert "minFeeB" (toJSON @Int 155381)

0 commit comments

Comments
 (0)