From 56975588518e58f92756cafd6195b69059f85fd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Hurlin?= Date: Thu, 30 Jan 2025 15:42:34 +0100 Subject: [PATCH] cardano-testnet: call the CLI check-node-configuration to catch configuration errors This also happens to be a test of check-node-configuration :-) --- cardano-testnet/src/Testnet/Start/Cardano.hs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cardano-testnet/src/Testnet/Start/Cardano.hs b/cardano-testnet/src/Testnet/Start/Cardano.hs index 3c3f6080130..13d375cd1c8 100644 --- a/cardano-testnet/src/Testnet/Start/Cardano.hs +++ b/cardano-testnet/src/Testnet/Start/Cardano.hs @@ -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