From c31d3914524bb472945eac8f12390005e6194027 Mon Sep 17 00:00:00 2001 From: John Ky Date: Sat, 15 Apr 2023 01:20:36 +1000 Subject: [PATCH] Fix epochLength and securityParam to conform to the formula 10 * k / f --- cardano-testnet/src/Testnet/Babbage.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cardano-testnet/src/Testnet/Babbage.hs b/cardano-testnet/src/Testnet/Babbage.hs index 24783109134..1fd2cac5d57 100644 --- a/cardano-testnet/src/Testnet/Babbage.hs +++ b/cardano-testnet/src/Testnet/Babbage.hs @@ -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)