Skip to content

Commit

Permalink
Add a note about constructing the HeadParameters from the InitTx
Browse files Browse the repository at this point in the history
  • Loading branch information
ch1bo committed Jun 8, 2021
1 parent d912a80 commit dbf3d56
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hydra-node/src/Hydra/HeadLogic.hs
Expand Up @@ -168,6 +168,8 @@ update Environment{party} ledger (HeadState p st) ev = case (st, ev) of
(InitState, ClientEvent (Init parties)) ->
newState p InitState [OnChainEffect (InitTx $ makeAllTokens parties)]
(InitState, OnChainEvent (InitTx tokens)) ->
-- NOTE(SN): Eventually we won't be able to construct 'HeadParameters' from
-- the 'InitTx'
let parties = Set.map thisToken tokens
in newState (p{parties}) (CollectingState tokens mempty) [ClientEffect ReadyToCommit]
--
Expand Down

0 comments on commit dbf3d56

Please sign in to comment.