Skip to content

Commit f394be8

Browse files
authored
Merge pull request #1318 from IntersectMBO/mgalazyn/fix/testnet-use-same-k-byron-shelley
create-testnet-data: use the same k for byron and shelley geneses
2 parents c84451f + 547a92a commit f394be8

File tree

1 file changed

+2
-1
lines changed
  • cardano-cli/src/Cardano/CLI/EraBased/Genesis/Internal

1 file changed

+2
-1
lines changed

cardano-cli/src/Cardano/CLI/EraBased/Genesis/Internal/Byron.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import Cardano.Api.Ledger qualified as L
1111

1212
import Cardano.CLI.Byron.Genesis qualified as Byron
1313
import Cardano.Crypto.ProtocolMagic qualified as Crypto
14+
import Cardano.Ledger.BaseTypes qualified as L
1415

1516
import Data.Aeson (toJSON, (.=))
1617
import Data.Aeson qualified as Aeson
@@ -58,7 +59,7 @@ mkGenesisParameters numPools actualNetworkWord32 byronGenesisFp shelleyGenesis =
5859
byronPoolNumber = max 1 numPools -- byron genesis creation needs a >= 1 number of pools
5960
gpStartTime = Shelley.sgSystemStart shelleyGenesis
6061
gpProtocolParamsFile = byronGenesisFp
61-
gpK = Byron.BlockCount 10
62+
gpK = Byron.BlockCount . L.unNonZero $ Shelley.sgSecurityParam shelleyGenesis
6263
protocolMagicId = Crypto.ProtocolMagicId actualNetworkWord32
6364
gpProtocolMagic = Crypto.AProtocolMagic (L.Annotated protocolMagicId ()) Crypto.RequiresMagic
6465
gpTestnetBalance =

0 commit comments

Comments
 (0)