@@ -64,6 +64,8 @@ import System.FilePath ((</>))
6464
6565import Testnet.Components.Configuration
6666import qualified Testnet.Defaults as Defaults
67+ import Cardano.Node.Testnet.Paths (defaultConfigFile , defaultPortFile ,
68+ defaultUtxoAddrPath )
6769import Testnet.Filepath
6870import Testnet.Handlers (interruptNodesOnSigINT )
6971import Testnet.Orphans ()
@@ -131,7 +133,7 @@ createTestnetEnv
131133 testnetOptions genesisOptions onChainParams
132134 (TmpAbsolutePath tmpAbsPath)
133135
134- let configurationFile = tmpAbsPath </> " configuration.yaml "
136+ let configurationFile = tmpAbsPath </> defaultConfigFile
135137 -- Add Byron, Shelley and Alonzo genesis hashes to node configuration
136138 config <- case genesisHashesPolicy of
137139 WithHashes -> createConfigJson (TmpAbsolutePath tmpAbsPath) sbe
@@ -152,7 +154,7 @@ createTestnetEnv
152154
153155 -- Write port file
154156 case Map. lookup i portNumbersMap of
155- Just port -> liftIOAnnotated $ writeFile (nodeDataDir </> " port " ) (show port)
157+ Just port -> liftIOAnnotated $ writeFile (tmpAbsPath </> defaultPortFile i ) (show port)
156158 Nothing -> throwString $ " Port not found for node " <> show i
157159
158160 producers <- mapM (idToRemoteAddressP2P portNumbersMap) $ NodeId <$> NEL. filter (/= i) nodeIds
@@ -247,7 +249,7 @@ cardanoTestnet
247249 , cardanoKESSource
248250 } = testnetOptions
249251 nPools = cardanoNumPools testnetOptions
250- nodeConfigFile = tmpAbsPath </> " configuration.yaml "
252+ nodeConfigFile = tmpAbsPath </> defaultConfigFile
251253 byronGenesisFile = tmpAbsPath </> " byron-genesis.json"
252254 shelleyGenesisFile = tmpAbsPath </> " shelley-genesis.json"
253255
@@ -260,7 +262,7 @@ cardanoTestnet
260262
261263 wallets <- forM [1 .. 3 ] $ \ idx -> do
262264 let utxoKeys@ KeyPair {verificationKey} = makePathsAbsolute $ Defaults. defaultUtxoKeys idx
263- let paymentAddrFile = tmpAbsPath </> " utxo-keys " </> " utxo " <> show idx </> " utxo.addr "
265+ let paymentAddrFile = tmpAbsPath </> defaultUtxoAddrPath idx
264266
265267 execCli_
266268 [ " latest" , " address" , " build"
@@ -279,7 +281,7 @@ cardanoTestnet
279281 -- Read port numbers from disk (written by createTestnetEnv)
280282 portNumbers <- forM (NEL. zip (1 :| [2 .. ]) cardanoNodes) $ \ (i, _nodeOption) -> do
281283 let nodeDataDir = tmpAbsPath </> Defaults. defaultNodeDataDir i
282- portPath = nodeDataDir </> " port "
284+ portPath = tmpAbsPath </> defaultPortFile i
283285 portStr <- liftIOAnnotated $ readFile portPath
284286 let port = read portStr :: PortNumber
285287 let topologyPath = nodeDataDir </> " topology.json"
0 commit comments