Skip to content

Commit 582e3b4

Browse files
vrom911noonio
authored andcommitted
Fix local binding signatures errors
1 parent 2c597ba commit 582e3b4

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

hydra-node/src/Hydra/API/WSServer.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ import Hydra.HeadLogic.State qualified as HeadState
4545
import Hydra.Logging (Tracer, traceWith)
4646
import Hydra.NetworkVersions qualified as NetworkVersions
4747
import Hydra.Node.Environment (Environment (..))
48-
import Hydra.Tx (Party)
48+
import Hydra.Tx (HeadId, Party)
4949
import Network.WebSockets (
5050
PendingConnection (pendingRequest),
5151
RequestHead (..),
@@ -180,6 +180,7 @@ wsApp env party tracer history callback headStateP responseChannel ServerOutputF
180180
WithAddressedTx addr -> txContainsAddr tx addr
181181
WithoutAddressedTx -> True
182182

183+
getHeadStatus :: HeadState tx -> HeadStatus
183184
getHeadStatus = \case
184185
HeadState.Idle{} -> Idle
185186
HeadState.Initial{} -> Initializing
@@ -188,6 +189,7 @@ wsApp env party tracer history callback headStateP responseChannel ServerOutputF
188189
| readyToFanoutSent -> FanoutPossible
189190
| otherwise -> Closed
190191

192+
getHeadId :: HeadState tx -> Maybe HeadId
191193
getHeadId = \case
192194
HeadState.Idle{} -> Nothing
193195
HeadState.Initial InitialState{headId} -> Just headId

hydra-node/test/Hydra/HeadLogicSpec.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,8 @@ spec =
399399
_ -> False
400400

401401
it "ignores valid AckSn if snapshot already confirmed" $ do
402-
let reqSn = receiveMessage $ ReqSn 0 1 [] Nothing Nothing
402+
let reqSn :: Input tx
403+
reqSn = receiveMessage $ ReqSn 0 1 [] Nothing Nothing
403404
snapshot1 = Snapshot testHeadId 0 1 [] mempty Nothing Nothing
404405
ackFrom sk = receiveMessageFrom (deriveParty sk) $ AckSn (sign sk snapshot1) 1
405406

0 commit comments

Comments
 (0)