Skip to content

Commit

Permalink
Add some identified gaps in the abort validator
Browse files Browse the repository at this point in the history
  • Loading branch information
ch1bo committed Dec 1, 2022
1 parent 695f812 commit f059f12
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions hydra-plutus/src/Hydra/Contract/Head.hs
Expand Up @@ -57,8 +57,8 @@ hydraHeadV1 = "HydraHeadV1"

{-# INLINEABLE headValidator #-}
headValidator ::
State ->
Input ->
DatumType ->
RedeemerType ->
ScriptContext ->
Bool
headValidator oldState input context =
Expand Down Expand Up @@ -135,10 +135,13 @@ mkHeadContext context =
--
-- * All PTs have been burnt: The right number of Head tokens, both PT for
-- parties and thread token, with the correct head id, are burnt,
-- FIXME: This is not part of the spec! Not needed or enforce garbage collection?
--
-- * All committed funds have been redistributed. This is done via v_commit
-- and it only needs to ensure that we have spent all comitted outputs,
-- which follows from burning all the PTs.
-- * FIXME: All committed funds have been redistributed. This is done via
-- v_commit and it only needs to ensure that we have spent all comitted
-- outputs, which follows from burning all the PTs.
--
-- * The transaction is performed (i.e. signed) by one of the participants.
checkAbort ::
ScriptContext ->
HeadContext ->
Expand Down

0 comments on commit f059f12

Please sign in to comment.