Skip to content

Commit

Permalink
Merge pull request #1263 from input-output-hk/override-known-network-…
Browse files Browse the repository at this point in the history
…cardano-config

Always download config files when running hydra-cluster on known networks
  • Loading branch information
ch1bo committed Jan 22, 2024
2 parents c680e46 + 1c2b340 commit 9c7d20f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions hydra-cluster/src/CardanoNode.hs
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,10 @@ withCardanoNodeOnKnownNetwork tracer workDir knownNetwork action = do
, "alonzo-genesis.json"
, "conway-genesis.json"
]
$ \fn ->
unlessM (doesFileExist $ workDir </> fn) $ do
createDirectoryIfMissing True $ workDir </> takeDirectory fn
fetchConfigFile (knownNetworkPath </> fn)
>>= writeFileBS (workDir </> fn)
$ \fn -> do
createDirectoryIfMissing True $ workDir </> takeDirectory fn
fetchConfigFile (knownNetworkPath </> fn)
>>= writeFileBS (workDir </> fn)

knownNetworkPath =
knownNetworkConfigBaseURL </> knownNetworkName
Expand Down

0 comments on commit 9c7d20f

Please sign in to comment.