Skip to content

Commit ca38b9d

Browse files
authored
Merge pull request #6096 from IntersectMBO/smelc/testnet-call-cli-check-node-configuration
cardano-testnet: call the CLI check-node-configuration to catch configuration errors
2 parents 77efb66 + 5697558 commit ca38b9d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cardano-testnet/src/Testnet/Start/Cardano.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,10 @@ cardanoTestnet
275275
-- Add Byron, Shelley and Alonzo genesis hashes to node configuration
276276
config <- createConfigJson (TmpAbsolutePath tmpAbsPath) sbe
277277
H.evalIO $ LBS.writeFile (unFile configurationFile) config
278+
execCli_
279+
[ "debug", "check-node-configuration"
280+
, "--node-configuration-file", unFile configurationFile
281+
]
278282

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

0 commit comments

Comments
 (0)