Skip to content

Commit

Permalink
Merge pull request #6096 from IntersectMBO/smelc/testnet-call-cli-che…
Browse files Browse the repository at this point in the history
…ck-node-configuration

cardano-testnet: call the CLI check-node-configuration to catch configuration errors
  • Loading branch information
smelc authored Jan 30, 2025
2 parents 77efb66 + 5697558 commit ca38b9d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cardano-testnet/src/Testnet/Start/Cardano.hs
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,10 @@ cardanoTestnet
-- Add Byron, Shelley and Alonzo genesis hashes to node configuration
config <- createConfigJson (TmpAbsolutePath tmpAbsPath) sbe
H.evalIO $ LBS.writeFile (unFile configurationFile) config
execCli_
[ "debug", "check-node-configuration"
, "--node-configuration-file", unFile configurationFile
]

portNumbersWithNodeOptions <- forM cardanoNodes $ \nodeOption -> (nodeOption,) <$> H.randomPort testnetDefaultIpv4Address
let portNumbers = snd <$> portNumbersWithNodeOptions
Expand Down

0 comments on commit ca38b9d

Please sign in to comment.