Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
abailly-iohk committed Nov 29, 2022
1 parent b57725b commit e3c73d2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion hydra-node/hydra-node.cabal
Expand Up @@ -365,5 +365,5 @@ test-suite tests
, websockets
, yaml

build-tool-depends: hspec-discover:hspec-discover -any
build-tool-depends: hspec-discover:hspec-discover
ghc-options: -threaded -rtsopts
2 changes: 1 addition & 1 deletion hydra-node/src/Hydra/Chain/Direct/Handlers.hs
Expand Up @@ -216,7 +216,7 @@ chainSyncHandler tracer callback getTimeHandle ctx =
Right utcTime ->
callback (const . Just $ Tick utcTime)

forM_ receivedTxs $ \tx -> do
forM_ receivedTxs $ \tx ->
callback $ \ChainStateAt{chainState = cs} ->
case observeSomeTx ctx cs tx of
Nothing -> Nothing
Expand Down
2 changes: 0 additions & 2 deletions hydra-node/test/Hydra/Model/MockChain.hs
Expand Up @@ -129,9 +129,7 @@ mockChainAndNetwork tr seedKeys _parties nodes = do
blockTime = 20 -- seconds
simulateTicks queue = forever $ do
threadDelay blockTime
-- now <- getCurrentTime
hasTx <- atomically $ tryReadTQueue queue
--fmap node <$> readTVarIO nodes >>= \ns -> mapM_ (`handleChainEvent` Tick now) ns
case hasTx of
Just tx -> do
let block = mkBlock tx
Expand Down

0 comments on commit e3c73d2

Please sign in to comment.