File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ import Hydra.HeadLogic.State qualified as HeadState
45
45
import Hydra.Logging (Tracer , traceWith )
46
46
import Hydra.NetworkVersions qualified as NetworkVersions
47
47
import Hydra.Node.Environment (Environment (.. ))
48
- import Hydra.Tx (Party )
48
+ import Hydra.Tx (HeadId , Party )
49
49
import Network.WebSockets (
50
50
PendingConnection (pendingRequest ),
51
51
RequestHead (.. ),
@@ -180,6 +180,7 @@ wsApp env party tracer history callback headStateP responseChannel ServerOutputF
180
180
WithAddressedTx addr -> txContainsAddr tx addr
181
181
WithoutAddressedTx -> True
182
182
183
+ getHeadStatus :: HeadState tx -> HeadStatus
183
184
getHeadStatus = \ case
184
185
HeadState. Idle {} -> Idle
185
186
HeadState. Initial {} -> Initializing
@@ -188,6 +189,7 @@ wsApp env party tracer history callback headStateP responseChannel ServerOutputF
188
189
| readyToFanoutSent -> FanoutPossible
189
190
| otherwise -> Closed
190
191
192
+ getHeadId :: HeadState tx -> Maybe HeadId
191
193
getHeadId = \ case
192
194
HeadState. Idle {} -> Nothing
193
195
HeadState. Initial InitialState {headId} -> Just headId
Original file line number Diff line number Diff line change @@ -399,7 +399,8 @@ spec =
399
399
_ -> False
400
400
401
401
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
403
404
snapshot1 = Snapshot testHeadId 0 1 [] mempty Nothing Nothing
404
405
ackFrom sk = receiveMessageFrom (deriveParty sk) $ AckSn (sign sk snapshot1) 1
405
406
You can’t perform that action at this time.
0 commit comments