Skip to content

Commit

Permalink
Merge pull request #796 from input-output-hk/hydra-node-crashed-after…
Browse files Browse the repository at this point in the history
…-a-fork

Hydra node crashed after a fork
  • Loading branch information
v0d1ch committed Mar 29, 2023
2 parents 79c5133 + 2427c65 commit 2cf8aba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hydra-node/src/Hydra/Chain/Direct/TimeHandle.hs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import Hydra.Cardano.Api (
)
import Hydra.Cardano.Api.Prelude (ChainPoint (ChainPoint, ChainPointAtGenesis))
import Hydra.Chain.CardanoClient (
QueryPoint (QueryAt),
QueryPoint (QueryTip),
queryEraHistory,
querySystemStart,
queryTip,
Expand Down Expand Up @@ -107,8 +107,8 @@ mkTimeHandle currentSlotNo systemStart eraHistory = do
queryTimeHandle :: NetworkId -> FilePath -> IO TimeHandle
queryTimeHandle networkId socketPath = do
tip <- queryTip networkId socketPath
systemStart <- querySystemStart networkId socketPath (QueryAt tip)
eraHistory <- queryEraHistory networkId socketPath (QueryAt tip)
systemStart <- querySystemStart networkId socketPath QueryTip
eraHistory <- queryEraHistory networkId socketPath QueryTip
currentTipSlot <-
case tip of
ChainPointAtGenesis -> pure $ SlotNo 0
Expand Down

0 comments on commit 2cf8aba

Please sign in to comment.