Skip to content

Commit

Permalink
cardano-testnet: call the CLI check-node-configuration to catch confi…
Browse files Browse the repository at this point in the history
…guration errors

This also happens to be a test of check-node-configuration :-)
  • Loading branch information
smelc committed Jan 30, 2025
1 parent 77efb66 commit 5697558
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 5697558

Please sign in to comment.