From 916a94eae9f2f0ef78f173fc4f24b03ba44751c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Hurlin?= Date: Fri, 12 Jan 2024 16:33:41 +0100 Subject: [PATCH 1/4] Correct a test that was supposed to use transient stake delegators, but didn't --- .../cardano-cli-golden/Test/Golden/CreateTestnetData.hs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cardano-cli/test/cardano-cli-golden/Test/Golden/CreateTestnetData.hs b/cardano-cli/test/cardano-cli-golden/Test/Golden/CreateTestnetData.hs index c2c0329d7c..0aa3708667 100644 --- a/cardano-cli/test/cardano-cli-golden/Test/Golden/CreateTestnetData.hs +++ b/cardano-cli/test/cardano-cli-golden/Test/Golden/CreateTestnetData.hs @@ -54,6 +54,8 @@ hprop_golden_create_testnet_data = H.diffVsGoldenFile generated'' "test/cardano-cli-golden/files/golden/conway/create-testnet-data.out" +-- | This test tests the non-transient case, i.e. it generates strictly +-- less things to disk than 'hprop_golden_create_testnet_data' hprop_golden_create_testnet_data_transient_stake_delegators :: Property hprop_golden_create_testnet_data_transient_stake_delegators = propertyOnce $ moduleWorkspace "tmp" $ \tempDir -> do @@ -68,9 +70,9 @@ hprop_golden_create_testnet_data_transient_stake_delegators = , "--out-dir", outputDir , "--testnet-magic", "42" , "--pools", "2" - , "--stake-delegators", "4" + , "--transient-stake-delegators", "4" ] -- We just test that the command doesn't crash when we execute a different path. -- For the golden part of this test, we are anyway covered by 'hprop_golden_create_testnet_data' - -- that generates strictly more stuff. \ No newline at end of file + -- that generates strictly more stuff. From 45005b04d33dd8162aa0fd82d582a9c35fa74f03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Hurlin?= Date: Fri, 12 Jan 2024 16:44:25 +0100 Subject: [PATCH 2/4] Add --drep-keys option to create-testnet-data. So far only generates the keys. No registration, no delegation. --- .../src/Cardano/CLI/EraBased/Commands/Genesis.hs | 1 + .../src/Cardano/CLI/EraBased/Options/Genesis.hs | 9 +++++++++ .../Cardano/CLI/EraBased/Run/CreateTestnetData.hs | 12 ++++++++++++ .../src/Cardano/CLI/EraBased/Run/Governance/DRep.hs | 7 ++++--- 4 files changed, 26 insertions(+), 3 deletions(-) diff --git a/cardano-cli/src/Cardano/CLI/EraBased/Commands/Genesis.hs b/cardano-cli/src/Cardano/CLI/EraBased/Commands/Genesis.hs index 2f683db6cf..619182cead 100644 --- a/cardano-cli/src/Cardano/CLI/EraBased/Commands/Genesis.hs +++ b/cardano-cli/src/Cardano/CLI/EraBased/Commands/Genesis.hs @@ -88,6 +88,7 @@ data GenesisCreateTestNetDataCmdArgs = GenesisCreateTestNetDataCmdArgs , numGenesisKeys :: !Word -- ^ The number of genesis keys credentials to create and write to disk. , numPools :: !Word -- ^ The number of stake pools credentials to create and write to disk. , stakeDelegators :: !StakeDelegators -- ^ The number of delegators to pools to create. + , numDrepKeys :: !Word -- ^ The number of DRep keys to create. Right now they receive neither delegation nor are registrated. This will come later. , numStuffedUtxo :: !Word -- ^ The number of UTxO accounts to make. They are "stuffed" because the credentials are not written to disk. , numUtxoKeys :: !Word -- ^ The number of UTxO credentials to create and write to disk. , supply :: !(Maybe Lovelace) -- ^ The number of Lovelace to distribute over initial, non-delegating stake holders. diff --git a/cardano-cli/src/Cardano/CLI/EraBased/Options/Genesis.hs b/cardano-cli/src/Cardano/CLI/EraBased/Options/Genesis.hs index 14fa1dddfe..d4fdc33fd1 100644 --- a/cardano-cli/src/Cardano/CLI/EraBased/Options/Genesis.hs +++ b/cardano-cli/src/Cardano/CLI/EraBased/Options/Genesis.hs @@ -205,6 +205,7 @@ pGenesisCreateTestNetData envCli = <*> pNumGenesisKeys <*> pNumPools <*> pNumStakeDelegs + <*> pNumDReps <*> pNumStuffedUtxoCount <*> pNumUtxoKeys <*> pSupply @@ -232,6 +233,14 @@ pGenesisCreateTestNetData envCli = , Opt.help "The number of stake pool credential sets to make (default is 0)." , Opt.value 0 ] + pNumDReps :: Parser Word + pNumDReps = + Opt.option Opt.auto $ mconcat + [ Opt.long "drep-keys" + , Opt.metavar "INT" + , Opt.help "The number of DRep credentials to make (default is 0)." + , Opt.value 0 + ] pNumStakeDelegs :: Parser StakeDelegators pNumStakeDelegs = pNumOnDiskStakeDelegators <|> pNumTransientStakeDelegs diff --git a/cardano-cli/src/Cardano/CLI/EraBased/Run/CreateTestnetData.hs b/cardano-cli/src/Cardano/CLI/EraBased/Run/CreateTestnetData.hs index 1733d873f6..bcda477605 100644 --- a/cardano-cli/src/Cardano/CLI/EraBased/Run/CreateTestnetData.hs +++ b/cardano-cli/src/Cardano/CLI/EraBased/Run/CreateTestnetData.hs @@ -32,6 +32,8 @@ import Cardano.Api.Shelley import Cardano.CLI.EraBased.Commands.Genesis as Cmd import qualified Cardano.CLI.EraBased.Commands.Node as Cmd import Cardano.CLI.EraBased.Run.Address (runAddressKeyGenCmd) +import qualified Cardano.CLI.EraBased.Run.Governance.DRep as DRep +import qualified Cardano.CLI.EraBased.Commands.Governance.DRep as DRep import qualified Cardano.CLI.EraBased.Run.Key as Key import Cardano.CLI.EraBased.Run.Node (runNodeIssueOpCertCmd, runNodeKeyGenColdCmd, runNodeKeyGenKesCmd, runNodeKeyGenVrfCmd) @@ -187,6 +189,7 @@ runGenesisCreateTestNetDataCmd Cmd.GenesisCreateTestNetDataCmdArgs , numGenesisKeys , numPools , stakeDelegators + , numDrepKeys , numStuffedUtxo , numUtxoKeys , supply @@ -238,6 +241,15 @@ runGenesisCreateTestNetDataCmd Cmd.GenesisCreateTestNetDataCmdArgs writeREADME poolsDir poolsREADME + -- DReps + forM_ [ 1 .. numDrepKeys ] $ \index -> do + let drepDir = outputDir "drep-keys" "drep" <> show index + vkeyFile = File @(VerificationKey ()) $ drepDir "drep.vkey" + skeyFile = File @(SigningKey ()) $ drepDir "drep.skey" + cmd = DRep.GovernanceDRepKeyGenCmdArgs ConwayEraOnwardsConway vkeyFile skeyFile + liftIO $ createDirectoryIfMissing True drepDir + firstExceptT GenesisCmdFileError $ DRep.runGovernanceDRepKeyGenCmd cmd + -- Stake delegators case stakeDelegators of OnDisk _ -> diff --git a/cardano-cli/src/Cardano/CLI/EraBased/Run/Governance/DRep.hs b/cardano-cli/src/Cardano/CLI/EraBased/Run/Governance/DRep.hs index 4234c4a49c..dda7a9dc2e 100644 --- a/cardano-cli/src/Cardano/CLI/EraBased/Run/Governance/DRep.hs +++ b/cardano-cli/src/Cardano/CLI/EraBased/Run/Governance/DRep.hs @@ -11,6 +11,7 @@ module Cardano.CLI.EraBased.Run.Governance.DRep ( runGovernanceDRepCmds + , runGovernanceDRepKeyGenCmd ) where import Cardano.Api @@ -39,7 +40,7 @@ runGovernanceDRepCmds :: () runGovernanceDRepCmds = \case Cmd.GovernanceDRepKeyGenCmd args -> runGovernanceDRepKeyGenCmd args - & firstExceptT CmdGovernanceCmdError + & firstExceptT (CmdGovernanceCmdError . GovernanceCmdWriteFileError) Cmd.GovernanceDRepIdCmd args -> runGovernanceDRepIdCmd args @@ -59,12 +60,12 @@ runGovernanceDRepCmds = \case runGovernanceDRepKeyGenCmd :: () => Cmd.GovernanceDRepKeyGenCmdArgs era - -> ExceptT GovernanceCmdError IO () + -> ExceptT (FileError ()) IO () runGovernanceDRepKeyGenCmd Cmd.GovernanceDRepKeyGenCmdArgs { vkeyFile , skeyFile - } = firstExceptT GovernanceCmdWriteFileError $ do + } = do skey <- liftIO $ generateSigningKey AsDRepKey let vkey = getVerificationKey skey newExceptT $ writeLazyByteStringFile skeyFile (textEnvelopeToJSON (Just skeyDesc) skey) From 452ba9a33d874a599392245e682d5fac14356583 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Hurlin?= Date: Fri, 12 Jan 2024 16:44:41 +0100 Subject: [PATCH 3/4] Adapt and extend existing test --- .../Test/Golden/CreateTestnetData.hs | 43 +++++++++---------- .../golden/conway/create-testnet-data.out | 12 +++++- 2 files changed, 32 insertions(+), 23 deletions(-) diff --git a/cardano-cli/test/cardano-cli-golden/Test/Golden/CreateTestnetData.hs b/cardano-cli/test/cardano-cli-golden/Test/Golden/CreateTestnetData.hs index 0aa3708667..b97ed21a01 100644 --- a/cardano-cli/test/cardano-cli-golden/Test/Golden/CreateTestnetData.hs +++ b/cardano-cli/test/cardano-cli-golden/Test/Golden/CreateTestnetData.hs @@ -15,6 +15,19 @@ import qualified Hedgehog.Extras.Test.Golden as H {- HLINT ignore "Use camelCase" -} +-- | A function to create the arguments, so that they are shared +-- between the two tests, except for the possibly transient ones. +mkArguments :: String -> [String] +mkArguments outputDir = + ["conway", "genesis", "create-testnet-data" + , "--genesis-keys", "2" + , "--utxo-keys", "3" + , "--out-dir", outputDir + , "--testnet-magic", "42" + , "--pools", "2" + , "--drep-keys", "5" + ] + -- | Given a root directory, returns files within this root (recursively) tree :: FilePath -> IO [FilePath] tree root = do @@ -26,22 +39,16 @@ tree root = do subTrees <- mapM tree subs return $ files ++ concat subTrees +-- | This test tests the non-transient case, i.e. it maximizes the files +-- that can be written to disk. Execute this test with: +-- @cabal test cardano-cli-golden --test-options '-p "/golden create testnet data/'@ hprop_golden_create_testnet_data :: Property hprop_golden_create_testnet_data = propertyOnce $ moduleWorkspace "tmp" $ \tempDir -> do let outputDir = tempDir "out" - void $ - execCardanoCLI - ["conway", "genesis", "create-testnet-data" - , "--genesis-keys", "2" - , "--utxo-keys", "3" - , "--out-dir", outputDir - , "--testnet-magic", "42" - , "--pools", "2" - , "--stake-delegators", "4" - ] + void $ execCardanoCLI $ mkArguments outputDir <> ["--stake-delegators", "4"] generated <- liftIO $ tree outputDir -- Sort output for stability, and make relative to avoid storing @@ -54,24 +61,16 @@ hprop_golden_create_testnet_data = H.diffVsGoldenFile generated'' "test/cardano-cli-golden/files/golden/conway/create-testnet-data.out" --- | This test tests the non-transient case, i.e. it generates strictly --- less things to disk than 'hprop_golden_create_testnet_data' +-- | This test tests the transient case, i.e. it writes strictly +-- less things to disk than 'hprop_golden_create_testnet_data'. Execute this test with: +-- @cabal test cardano-cli-golden --test-options '-p "/golden create testnet data transient stake delegators/'@ hprop_golden_create_testnet_data_transient_stake_delegators :: Property hprop_golden_create_testnet_data_transient_stake_delegators = propertyOnce $ moduleWorkspace "tmp" $ \tempDir -> do let outputDir = tempDir "out" - void $ - execCardanoCLI - ["conway", "genesis", "create-testnet-data" - , "--genesis-keys", "2" - , "--utxo-keys", "3" - , "--out-dir", outputDir - , "--testnet-magic", "42" - , "--pools", "2" - , "--transient-stake-delegators", "4" - ] + void $ execCardanoCLI $ mkArguments outputDir <> ["--transient-stake-delegators", "4"] -- We just test that the command doesn't crash when we execute a different path. -- For the golden part of this test, we are anyway covered by 'hprop_golden_create_testnet_data' diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/conway/create-testnet-data.out b/cardano-cli/test/cardano-cli-golden/files/golden/conway/create-testnet-data.out index 95098e2755..d010c5134a 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/conway/create-testnet-data.out +++ b/cardano-cli/test/cardano-cli-golden/files/golden/conway/create-testnet-data.out @@ -15,6 +15,16 @@ delegate-keys/delegate2/opcert.cert delegate-keys/delegate2/opcert.counter delegate-keys/delegate2/vrf.skey delegate-keys/delegate2/vrf.vkey +drep-keys/drep1/drep.skey +drep-keys/drep1/drep.vkey +drep-keys/drep2/drep.skey +drep-keys/drep2/drep.vkey +drep-keys/drep3/drep.skey +drep-keys/drep3/drep.vkey +drep-keys/drep4/drep.skey +drep-keys/drep4/drep.vkey +drep-keys/drep5/drep.skey +drep-keys/drep5/drep.vkey genesis-keys/README.md genesis-keys/genesis1/key.skey genesis-keys/genesis1/key.vkey @@ -64,4 +74,4 @@ utxo-keys/utxo1/utxo.vkey utxo-keys/utxo2/utxo.skey utxo-keys/utxo2/utxo.vkey utxo-keys/utxo3/utxo.skey -utxo-keys/utxo3/utxo.vkey \ No newline at end of file +utxo-keys/utxo3/utxo.vkey From 1695d074d18f60ee0de18fadc5d5e1e89ba391a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Hurlin?= Date: Fri, 12 Jan 2024 17:03:29 +0100 Subject: [PATCH 4/4] Adapt golden files --- cardano-cli/test/cardano-cli-golden/files/golden/help.cli | 7 +++++++ .../golden/help/allegra_genesis_create-testnet-data.cli | 3 +++ .../golden/help/alonzo_genesis_create-testnet-data.cli | 3 +++ .../golden/help/babbage_genesis_create-testnet-data.cli | 3 +++ .../golden/help/conway_genesis_create-testnet-data.cli | 3 +++ .../golden/help/latest_genesis_create-testnet-data.cli | 3 +++ .../files/golden/help/mary_genesis_create-testnet-data.cli | 3 +++ .../golden/help/shelley_genesis_create-testnet-data.cli | 3 +++ 8 files changed, 28 insertions(+) diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help.cli index 5abc2fa18c..f9d1977866 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help.cli @@ -265,6 +265,7 @@ Usage: cardano-cli shelley genesis create-testnet-data [--spec-shelley FILE] [ --stake-delegators INT | --transient-stake-delegators INT ] + [--drep-keys INT] [--stuffed-utxo INT] [--utxo-keys INT] [--supply LOVELACE] @@ -1423,6 +1424,7 @@ Usage: cardano-cli allegra genesis create-testnet-data [--spec-shelley FILE] [ --stake-delegators INT | --transient-stake-delegators INT ] + [--drep-keys INT] [--stuffed-utxo INT] [--utxo-keys INT] [--supply LOVELACE] @@ -2579,6 +2581,7 @@ Usage: cardano-cli mary genesis create-testnet-data [--spec-shelley FILE] [ --stake-delegators INT | --transient-stake-delegators INT ] + [--drep-keys INT] [--stuffed-utxo INT] [--utxo-keys INT] [--supply LOVELACE] @@ -3719,6 +3722,7 @@ Usage: cardano-cli alonzo genesis create-testnet-data [--spec-shelley FILE] [ --stake-delegators INT | --transient-stake-delegators INT ] + [--drep-keys INT] [--stuffed-utxo INT] [--utxo-keys INT] [--supply LOVELACE] @@ -4883,6 +4887,7 @@ Usage: cardano-cli babbage genesis create-testnet-data [--spec-shelley FILE] [ --stake-delegators INT | --transient-stake-delegators INT ] + [--drep-keys INT] [--stuffed-utxo INT] [--utxo-keys INT] [--supply LOVELACE] @@ -6065,6 +6070,7 @@ Usage: cardano-cli conway genesis create-testnet-data [--spec-shelley FILE] [ --stake-delegators INT | --transient-stake-delegators INT ] + [--drep-keys INT] [--stuffed-utxo INT] [--utxo-keys INT] [--supply LOVELACE] @@ -7581,6 +7587,7 @@ Usage: cardano-cli latest genesis create-testnet-data [--spec-shelley FILE] [ --stake-delegators INT | --transient-stake-delegators INT ] + [--drep-keys INT] [--stuffed-utxo INT] [--utxo-keys INT] [--supply LOVELACE] diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_genesis_create-testnet-data.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_genesis_create-testnet-data.cli index eebd19adf6..431e86e9f2 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_genesis_create-testnet-data.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/allegra_genesis_create-testnet-data.cli @@ -4,6 +4,7 @@ Usage: cardano-cli allegra genesis create-testnet-data [--spec-shelley FILE] [ --stake-delegators INT | --transient-stake-delegators INT ] + [--drep-keys INT] [--stuffed-utxo INT] [--utxo-keys INT] [--supply LOVELACE] @@ -28,6 +29,8 @@ Available options: The number of stake delegator credential sets to make (default is 0). The credentials are NOT written to disk. + --drep-keys INT The number of DRep credentials to make (default is + 0). --stuffed-utxo INT The number of fake UTxO entries to generate (default is 0). --utxo-keys INT The number of UTxO keys to make (default is 0). diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_genesis_create-testnet-data.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_genesis_create-testnet-data.cli index 579aa9f168..8db7137fb8 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_genesis_create-testnet-data.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/alonzo_genesis_create-testnet-data.cli @@ -4,6 +4,7 @@ Usage: cardano-cli alonzo genesis create-testnet-data [--spec-shelley FILE] [ --stake-delegators INT | --transient-stake-delegators INT ] + [--drep-keys INT] [--stuffed-utxo INT] [--utxo-keys INT] [--supply LOVELACE] @@ -28,6 +29,8 @@ Available options: The number of stake delegator credential sets to make (default is 0). The credentials are NOT written to disk. + --drep-keys INT The number of DRep credentials to make (default is + 0). --stuffed-utxo INT The number of fake UTxO entries to generate (default is 0). --utxo-keys INT The number of UTxO keys to make (default is 0). diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_genesis_create-testnet-data.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_genesis_create-testnet-data.cli index 82282faa35..bcf32bb864 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_genesis_create-testnet-data.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/babbage_genesis_create-testnet-data.cli @@ -4,6 +4,7 @@ Usage: cardano-cli babbage genesis create-testnet-data [--spec-shelley FILE] [ --stake-delegators INT | --transient-stake-delegators INT ] + [--drep-keys INT] [--stuffed-utxo INT] [--utxo-keys INT] [--supply LOVELACE] @@ -28,6 +29,8 @@ Available options: The number of stake delegator credential sets to make (default is 0). The credentials are NOT written to disk. + --drep-keys INT The number of DRep credentials to make (default is + 0). --stuffed-utxo INT The number of fake UTxO entries to generate (default is 0). --utxo-keys INT The number of UTxO keys to make (default is 0). diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_genesis_create-testnet-data.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_genesis_create-testnet-data.cli index 6b4babfe50..4a2695534b 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_genesis_create-testnet-data.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/conway_genesis_create-testnet-data.cli @@ -4,6 +4,7 @@ Usage: cardano-cli conway genesis create-testnet-data [--spec-shelley FILE] [ --stake-delegators INT | --transient-stake-delegators INT ] + [--drep-keys INT] [--stuffed-utxo INT] [--utxo-keys INT] [--supply LOVELACE] @@ -28,6 +29,8 @@ Available options: The number of stake delegator credential sets to make (default is 0). The credentials are NOT written to disk. + --drep-keys INT The number of DRep credentials to make (default is + 0). --stuffed-utxo INT The number of fake UTxO entries to generate (default is 0). --utxo-keys INT The number of UTxO keys to make (default is 0). diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_genesis_create-testnet-data.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_genesis_create-testnet-data.cli index 3ca7fa635a..b259f844a5 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_genesis_create-testnet-data.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/latest_genesis_create-testnet-data.cli @@ -4,6 +4,7 @@ Usage: cardano-cli latest genesis create-testnet-data [--spec-shelley FILE] [ --stake-delegators INT | --transient-stake-delegators INT ] + [--drep-keys INT] [--stuffed-utxo INT] [--utxo-keys INT] [--supply LOVELACE] @@ -28,6 +29,8 @@ Available options: The number of stake delegator credential sets to make (default is 0). The credentials are NOT written to disk. + --drep-keys INT The number of DRep credentials to make (default is + 0). --stuffed-utxo INT The number of fake UTxO entries to generate (default is 0). --utxo-keys INT The number of UTxO keys to make (default is 0). diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_genesis_create-testnet-data.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_genesis_create-testnet-data.cli index 273e6d48d1..fd0fdad7b0 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_genesis_create-testnet-data.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/mary_genesis_create-testnet-data.cli @@ -4,6 +4,7 @@ Usage: cardano-cli mary genesis create-testnet-data [--spec-shelley FILE] [ --stake-delegators INT | --transient-stake-delegators INT ] + [--drep-keys INT] [--stuffed-utxo INT] [--utxo-keys INT] [--supply LOVELACE] @@ -28,6 +29,8 @@ Available options: The number of stake delegator credential sets to make (default is 0). The credentials are NOT written to disk. + --drep-keys INT The number of DRep credentials to make (default is + 0). --stuffed-utxo INT The number of fake UTxO entries to generate (default is 0). --utxo-keys INT The number of UTxO keys to make (default is 0). diff --git a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_genesis_create-testnet-data.cli b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_genesis_create-testnet-data.cli index 3d7481eaae..15dc905401 100644 --- a/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_genesis_create-testnet-data.cli +++ b/cardano-cli/test/cardano-cli-golden/files/golden/help/shelley_genesis_create-testnet-data.cli @@ -4,6 +4,7 @@ Usage: cardano-cli shelley genesis create-testnet-data [--spec-shelley FILE] [ --stake-delegators INT | --transient-stake-delegators INT ] + [--drep-keys INT] [--stuffed-utxo INT] [--utxo-keys INT] [--supply LOVELACE] @@ -28,6 +29,8 @@ Available options: The number of stake delegator credential sets to make (default is 0). The credentials are NOT written to disk. + --drep-keys INT The number of DRep credentials to make (default is + 0). --stuffed-utxo INT The number of fake UTxO entries to generate (default is 0). --utxo-keys INT The number of UTxO keys to make (default is 0).