File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -262,12 +262,17 @@ withCardanoNodeOnKnownNetwork tracer stateDirectory knownNetwork action = do
262262 , " alonzo-genesis.json"
263263 , " conway-genesis.json"
264264 , " peer-snapshot.json"
265- , " checkpoints.json"
266265 ]
267266 $ \ fn -> do
268267 createDirectoryIfMissing True $ stateDirectory </> takeDirectory fn
269268 fetchConfigFile (knownNetworkPath </> fn)
270269 >>= writeFileBS (stateDirectory </> fn)
270+ when (knownNetwork `elem` [Mainnet , Preview ]) $ do
271+ forM_ [" checkpoints.json" ] $
272+ \ fn -> do
273+ createDirectoryIfMissing True $ stateDirectory </> takeDirectory fn
274+ fetchConfigFile (knownNetworkPath </> fn)
275+ >>= writeFileBS (stateDirectory </> fn)
271276
272277 knownNetworkPath =
273278 knownNetworkConfigBaseURL </> knownNetworkName
You can’t perform that action at this time.
0 commit comments