@@ -32,8 +32,8 @@ module Testnet.Defaults
32
32
, plutusV3Script
33
33
) where
34
34
35
- import Cardano.Api (CardanoEra (.. ), File (.. ), pshow , ShelleyBasedEra (.. ),
36
- toCardanoEra , unsafeBoundedRational , AnyShelleyBasedEra (.. ))
35
+ import Cardano.Api (AnyShelleyBasedEra (.. ), CardanoEra (.. ), File (.. ),
36
+ ShelleyBasedEra (.. ), pshow , toCardanoEra , unsafeBoundedRational )
37
37
import qualified Cardano.Api.Shelley as Api
38
38
39
39
import Cardano.Ledger.Alonzo.Core (PParams (.. ))
@@ -433,7 +433,7 @@ defaultShelleyGenesis asbe startTime maxSupply options = do
433
433
activeSlotsCoeff = round (shelleyActiveSlotsCoeff * 100 ) % 100
434
434
-- make security param k satisfy: epochLength = 10 * k / f
435
435
-- TODO: find out why this actually degrates network stability - turned off for now
436
- -- securityParam = ceiling $ fromIntegral epochLength * cardanoActiveSlotsCoeff / 10
436
+ securityParam = ceiling $ fromIntegral epochLength * shelleyActiveSlotsCoeff / 10
437
437
pVer = eraToProtocolVersion asbe
438
438
protocolParams = Api. sgProtocolParams Api. shelleyGenesisDefaults
439
439
protocolParamsWithPVer = protocolParams & ppProtocolVersionL' .~ pVer
@@ -444,7 +444,7 @@ defaultShelleyGenesis asbe startTime maxSupply options = do
444
444
, Api. sgNetworkMagic = fromIntegral magic
445
445
, Api. sgProtocolParams = protocolParamsWithPVer
446
446
-- using default from shelley genesis k = 2160
447
- -- , Api.sgSecurityParam = securityParam
447
+ , Api. sgSecurityParam = securityParam
448
448
, Api. sgSlotLength = secondsToNominalDiffTimeMicro $ realToFrac slotLength
449
449
, Api. sgSystemStart = startTime
450
450
}
0 commit comments