From a12df9d343972cc95e9155406b24f63724c50d2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Hurlin?= Date: Wed, 11 Dec 2024 10:23:45 +0100 Subject: [PATCH] create-testnet-data's implementation: explain why drepDelegs can be left empty --- .../src/Cardano/CLI/EraBased/Run/Genesis/CreateTestnetData.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cardano-cli/src/Cardano/CLI/EraBased/Run/Genesis/CreateTestnetData.hs b/cardano-cli/src/Cardano/CLI/EraBased/Run/Genesis/CreateTestnetData.hs index c3fa8ecd2d..ae492967c5 100644 --- a/cardano-cli/src/Cardano/CLI/EraBased/Run/Genesis/CreateTestnetData.hs +++ b/cardano-cli/src/Cardano/CLI/EraBased/Run/Genesis/CreateTestnetData.hs @@ -516,7 +516,9 @@ runGenesisCreateTestNetDataCmd { L.drepExpiry = EpochNo 1_000 , L.drepAnchor = SNothing , L.drepDeposit = max (L.Coin 1_000_000) minDeposit - , L.drepDelegs = Set.empty + , L.drepDelegs = Set.empty -- We don't need to populate this field (field "initialDReps"."keyHash-*"."delegators" in the JSON) + -- because its content is derived from the "delegs" field ("cgDelegs" above) + -- More context is provided here: https://github.com/IntersectMBO/cardano-cli/pull/987 } ) )