Skip to content

Commit

Permalink
Merge pull request #5553 from input-output-hk/jordan/ledger-events-up…
Browse files Browse the repository at this point in the history
…date-constitution-test

Ledger events update constitution test
  • Loading branch information
Jimbo4350 authored Dec 11, 2023
2 parents e0fbe45 + 662cb33 commit ee9322d
Show file tree
Hide file tree
Showing 5 changed files with 437 additions and 6 deletions.
7 changes: 6 additions & 1 deletion cardano-testnet/cardano-testnet.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,10 @@ test-suite cardano-testnet-test
Cardano.Testnet.Test.Cli.QuerySlotNumber
Cardano.Testnet.Test.FoldBlocks
Cardano.Testnet.Test.Misc
Cardano.Testnet.Test.Node.LedgerEvents

Cardano.Testnet.Test.LedgerEvents.Gov.ProposeNewConstitution
Cardano.Testnet.Test.LedgerEvents.SanityCheck

Cardano.Testnet.Test.Node.Shutdown
Cardano.Testnet.Test.SubmitApi.Babbage.Transaction

Expand All @@ -180,6 +183,8 @@ test-suite cardano-testnet-test
, cardano-api
, cardano-cli
, cardano-crypto-class
, cardano-ledger-conway
, cardano-ledger-core
, cardano-testnet
, containers
, directory
Expand Down
6 changes: 5 additions & 1 deletion cardano-testnet/src/Testnet/Components/Configuration.hs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ module Testnet.Components.Configuration
( createConfigYaml
, createSPOGenesisAndFiles
, mkTopologyConfig
, numSeededUTxOKeys
) where

import Cardano.Api.Shelley hiding (cardanoEra)
Expand Down Expand Up @@ -71,6 +72,9 @@ createConfigYaml (TmpAbsolutePath tempAbsPath') anyCardanoEra' = GHC.withFrozenC
]


numSeededUTxOKeys :: Int
numSeededUTxOKeys = 3

createSPOGenesisAndFiles
:: (MonadTest m, MonadCatch m, MonadIO m, HasCallStack)
=> CardanoTestnetOptions
Expand Down Expand Up @@ -121,7 +125,7 @@ createSPOGenesisAndFiles testnetOptions startTime (TmpAbsolutePath tempAbsPath')
, "--supply", "1000000000000"
, "--supply-delegated", "1000000000000"
, "--gen-stake-delegs", "3"
, "--gen-utxo-keys", "3"
, "--gen-utxo-keys", show numSeededUTxOKeys
, "--start-time", DTC.formatIso8601 startTime
]

Expand Down
Loading

0 comments on commit ee9322d

Please sign in to comment.