Skip to content

Commit

Permalink
Merge pull request #5099 from input-output-hk/newhoggy/fix-securityPa…
Browse files Browse the repository at this point in the history
…ram-and-epochLength

Fix epochLength and securityParam to conform to the formula 10 * k / f
  • Loading branch information
newhoggy authored Apr 17, 2023
2 parents 0b8893d + c31d391 commit 543b267
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cardano-testnet/src/Testnet/Babbage.hs
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ babbageTestnet testnetOptions H.Conf {..} = do
H.rewriteJsonFile (tempAbsPath </> "genesis/shelley/genesis.json") $ J.rewriteObject
( HM.insert "slotLength" (toJSON @Double 0.1)
. HM.insert "activeSlotsCoeff" (toJSON @Double 0.1)
. HM.insert "securityParam" (toJSON @Int 10) -- TODO: USE config parameter
. HM.insert "epochLength" (toJSON @Int 500)
. HM.insert "securityParam" (toJSON @Int 6) -- TODO: USE config parameter
. HM.insert "epochLength" (toJSON @Int 600) -- Should be "10 * k / f" where "k = securityParam, f = activeSlotsCoeff"
. HM.insert "maxLovelaceSupply" (toJSON @Int 1000000000000)
. HM.insert "minFeeA" (toJSON @Int 44)
. HM.insert "minFeeB" (toJSON @Int 155381)
Expand Down

0 comments on commit 543b267

Please sign in to comment.