Skip to content

Commit

Permalink
Change the internal state before emitting DecommitFinalized
Browse files Browse the repository at this point in the history
  • Loading branch information
v0d1ch committed May 7, 2024
1 parent e2c7bd2 commit 512b79f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hydra-node/src/Hydra/HeadLogic.hs
Original file line number Diff line number Diff line change
Expand Up @@ -912,8 +912,8 @@ update env ledger st ev = case (st, ev) of
)
-- TODO: What happens if observed decrement tx get's rolled back?
| ourHeadId == headId ->
cause (ClientEffect $ ServerOutput.DecommitFinalized{headId})
<> newState DecommitFinalized
newState DecommitFinalized
<> cause (ClientEffect $ ServerOutput.DecommitFinalized{headId})
| otherwise ->
Error NotOurHead{ourHeadId, otherHeadId = headId}
-- Closed
Expand Down

0 comments on commit 512b79f

Please sign in to comment.