File tree Expand file tree Collapse file tree
cardano-node/src/Cardano/Node/Configuration Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -349,19 +349,16 @@ readTopologyFileOrError nc tr =
349349 <> Text. unpack err)
350350 pure
351351
352- -- TODO(10.7): what the resulting LedgerPeersKind should be?
353- -- Probably we need to use the LedgerPeerSnapshotWithBlock type
354352readPeerSnapshotFile :: PeerSnapshotFile -> IO (Either Text (LedgerPeerSnapshot BigLedgerPeers ))
355353readPeerSnapshotFile (PeerSnapshotFile file) = do
356- _content <- first renderException <$> try (BS. readFile file)
357- -- return $ first handler $ content >>= eitherDecodeStrict
358- undefined -- TODO(10.7)
354+ content <- first renderException <$> try (BS. readFile file)
355+ return $ first handler $ content >>= eitherDecodeStrict
359356 where
360357 renderException :: IOException -> String
361358 renderException = displayException
362359
363- _handler :: String -> Text
364- _handler msg =
360+ handler :: String -> Text
361+ handler msg =
365362 Text. pack
366363 $ " Cardano.Node.Configuration.TopologyP2P.readPeerSnapshotFile: " <> msg
367364
You can’t perform that action at this time.
0 commit comments