Skip to content

Commit

Permalink
Fix TxTrace model to allow contest of closing actor
Browse files Browse the repository at this point in the history
While both approaches would be fine (and we had it different in the
past), this matches the implementation and specification.
  • Loading branch information
ch1bo committed Apr 5, 2024
1 parent 682f022 commit e5d79be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hydra-node/test/Hydra/Chain/Direct/TxTraceSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,12 @@ instance StateModel Model where
nextState m t result =
case t of
ProduceSnapshots snapshots -> m{snapshots = snapshots}
Close{actor, snapshotNumber} ->
Close{snapshotNumber} ->
m
{ headState = Closed
, utxoV = result
, snapshots = filter (> snapshotNumber) $ snapshots m
, alreadyContested = actor : alreadyContested m
, alreadyContested = []
}
Contest{actor, snapshotNumber} ->
m
Expand Down

0 comments on commit e5d79be

Please sign in to comment.