From a1367ca011c33ab5970ea1c34e85074146847f0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Hurlin?= Date: Wed, 3 Apr 2024 15:02:44 +0200 Subject: [PATCH] Details --- cardano-testnet/src/Testnet/Components/Configuration.hs | 4 ++-- cardano-testnet/src/Testnet/Defaults.hs | 4 ++-- cardano-testnet/src/Testnet/Start/Cardano.hs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cardano-testnet/src/Testnet/Components/Configuration.hs b/cardano-testnet/src/Testnet/Components/Configuration.hs index cf18130d22b..3a298e98ce3 100644 --- a/cardano-testnet/src/Testnet/Components/Configuration.hs +++ b/cardano-testnet/src/Testnet/Components/Configuration.hs @@ -137,8 +137,8 @@ createSPOGenesisAndFiles (NumPools numPoolNodes) era shelleyGenesis alonzoGenesi , "--spec-conway", inputGenesisConwayFp , "--testnet-magic", show testnetMagic , "--pools", show numPoolNodes - , "--total-supply", show @Int 2_000_000_000_000 - , "--delegated-supply", show @Int 1_000_000_000_000 + , "--total-supply", show @Int 2_000_000_000_000 -- 2 trillions + , "--delegated-supply", show @Int 1_000_000_000_000 -- 1 trillion , "--stake-delegators", show numStakeDelegators , "--utxo-keys", show numSeededUTxOKeys , "--drep-keys", "3" diff --git a/cardano-testnet/src/Testnet/Defaults.hs b/cardano-testnet/src/Testnet/Defaults.hs index c84dda1a17e..ff5d822aea1 100644 --- a/cardano-testnet/src/Testnet/Defaults.hs +++ b/cardano-testnet/src/Testnet/Defaults.hs @@ -434,7 +434,7 @@ defaultShelleyGenesis startTime testnetOptions = do { cardanoTestnetMagic = testnetMagic , cardanoSlotLength = slotLength , cardanoEpochLength = epochLength - , cardanoMaxSupply = maxLovelaceLovelaceSupply + , cardanoMaxSupply = sgMaxLovelaceSupply , cardanoActiveSlotsCoeff , cardanoNodeEra } = testnetOptions @@ -449,7 +449,7 @@ defaultShelleyGenesis startTime testnetOptions = do Api.shelleyGenesisDefaults { Api.sgActiveSlotsCoeff = unsafeBoundedRational activeSlotsCoeff , Api.sgEpochLength = EpochSize $ fromIntegral epochLength - , Api.sgMaxLovelaceSupply = maxLovelaceLovelaceSupply + , Api.sgMaxLovelaceSupply , Api.sgNetworkMagic = fromIntegral testnetMagic , Api.sgProtocolParams = protocolParamsWithPVer -- using default from shelley genesis k = 2160 diff --git a/cardano-testnet/src/Testnet/Start/Cardano.hs b/cardano-testnet/src/Testnet/Start/Cardano.hs index 8a917047d9a..0932924f590 100644 --- a/cardano-testnet/src/Testnet/Start/Cardano.hs +++ b/cardano-testnet/src/Testnet/Start/Cardano.hs @@ -332,7 +332,7 @@ cardanoTestnet forM_ (zip [1..] portNumbers) $ \(i, portNumber) -> do let iStr = printf "%03d" (i - 1) H.renameFile (tmpAbsPath "byron-gen-command" "delegate-keys." <> iStr <> ".key") (tmpAbsPath poolKeyDir i "byron-delegate.key") - H.renameFile (tmpAbsPath "byron-gen-command" "delegation-cert." <> iStr <> ".json") (tmpAbsPath poolKeyDir i "byron-delegation.cert") + H.renameFile (tmpAbsPath "byron-gen-command" "delegation-cert." <> iStr <> ".json") (tmpAbsPath poolKeyDir i "byron-delegation.cert") H.writeFile (tmpAbsPath poolKeyDir i "port") (show portNumber) -- Make topology files