Skip to content

Commit

Permalink
Add spec comments onOpenClientClose according to latest spec changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ffakenz committed Jul 2, 2024
1 parent 6bb2eb2 commit 290a4ce
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion hydra-node/src/Hydra/HeadLogic.hs
Original file line number Diff line number Diff line change
Expand Up @@ -863,10 +863,19 @@ onOpenClientClose ::
OpenState tx ->
Outcome tx
onOpenClientClose st =
-- Spec: η ← combine(S ̄.U)
-- ηω ← combine(outputs(S ̄.txω))
-- ξ ← S ̄.σ
-- postTx (close, S ̄.v, S ̄.s, η, ηω,ξ)
cause
OnChainEffect
{ postChainTx =
CloseTx headId parameters confirmedSnapshot version (fromMaybe mempty $ Hydra.Snapshot.utxoToDecommit $ getSnapshot confirmedSnapshot)
CloseTx
headId
parameters
confirmedSnapshot
version
(fromMaybe mempty $ Hydra.Snapshot.utxoToDecommit $ getSnapshot confirmedSnapshot)
}
where
CoordinatedHeadState{confirmedSnapshot, version} = coordinatedHeadState
Expand Down

0 comments on commit 290a4ce

Please sign in to comment.