Skip to content

Commit a12df9d

Browse files
committed
create-testnet-data's implementation: explain why drepDelegs can be left empty
1 parent 3c0af7a commit a12df9d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cardano-cli/src/Cardano/CLI/EraBased/Run/Genesis/CreateTestnetData.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,9 @@ runGenesisCreateTestNetDataCmd
516516
{ L.drepExpiry = EpochNo 1_000
517517
, L.drepAnchor = SNothing
518518
, L.drepDeposit = max (L.Coin 1_000_000) minDeposit
519-
, L.drepDelegs = Set.empty
519+
, L.drepDelegs = Set.empty -- We don't need to populate this field (field "initialDReps"."keyHash-*"."delegators" in the JSON)
520+
-- because its content is derived from the "delegs" field ("cgDelegs" above)
521+
-- More context is provided here: https://github.com/IntersectMBO/cardano-cli/pull/987
520522
}
521523
)
522524
)

0 commit comments

Comments
 (0)