@@ -156,7 +156,7 @@ startNode tp node ipv4 port _testnetMagic nodeCmd = GHC.withFrozenCallStack $ do
156156
157157 isClosed <- liftIOAnnotated $ Ping. waitForPortClosed 30 0.1 port
158158 unless isClosed $
159- throwString $ " Port is still in use after 30 seconds before starting node: " <> show port
159+ throwString $ " Port is still in use after 30 seconds before starting node: " <> show port
160160
161161 (Just stdIn, _, _, hProcess, _)
162162 <- firstExceptT ProcessRelatedFailure $ initiateProcess
@@ -278,7 +278,6 @@ createSubdirectoryIfMissingNew parent subdirectory = GHC.withFrozenCallStack $ d
278278-- Idempotent.
279279startLedgerNewEpochStateLogging
280280 :: HasCallStack
281- => MonadCatch m
282281 => MonadResource m
283282 => TestnetRuntime
284283 -> FilePath -- ^ tmp workspace directory
@@ -294,23 +293,24 @@ startLedgerNewEpochStateLogging testnetRuntime tmpWorkspace = withFrozenCallStac
294293 False -> do
295294 throwString $ " Log directory does not exist: " <> logDir <> " - cannot start logging epoch states"
296295
297- liftIOAnnotated $ IO. doesFileExist logFile >>= \ case
296+ liftIOAnnotated ( IO. doesFileExist logFile) >>= \ case
298297 True -> return ()
299- False -> liftIO $ appendFile logFile " "
300-
301- let socketPath = case uncons (testnetSprockets testnetRuntime) of
302- Just (sprocket, _) -> H. sprocketSystemName sprocket
303- Nothing -> throwString " No testnet sprocket available"
304-
305- let act = runExceptT $
306- foldEpochState
307- (configurationFile testnetRuntime)
308- (Api. File socketPath)
309- Api. QuickValidation
310- (EpochNo maxBound )
311- Nothing
312- (handler logFile diffFile)
313- void $ asyncRegister_ act
298+ False -> do
299+ liftIOAnnotated $ appendFile logFile " "
300+
301+ let socketPath = case uncons (testnetSprockets testnetRuntime) of
302+ Just (sprocket, _) -> H. sprocketSystemName sprocket
303+ Nothing -> throwString " No testnet sprocket available"
304+
305+ void $ asyncRegister_ . runExceptT $
306+ foldEpochState
307+ (configurationFile testnetRuntime)
308+ (Api. File socketPath)
309+ Api. QuickValidation
310+ (EpochNo maxBound )
311+ Nothing
312+ (handler logFile diffFile)
313+
314314 where
315315 handler :: FilePath -- ^ log file
316316 -> FilePath -- ^ diff file
0 commit comments