Skip to content

Commit

Permalink
Do not try to observe AbortTx
Browse files Browse the repository at this point in the history
Because it does not have any combination we always observe it which
does not make sense right now.
  • Loading branch information
abailly-iohk committed Sep 23, 2021
1 parent 324a65a commit 006d74d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hydra-node/src/Hydra/Chain/Direct/Tx.hs
Expand Up @@ -28,7 +28,7 @@ import Control.Monad.Class.MonadSTM (stateTVar)
import qualified Data.Map as Map
import qualified Data.Sequence.Strict as StrictSeq
import qualified Data.Set as Set
import Hydra.Chain (HeadParameters (..), OnChainTx (OnAbortTx, OnInitTx))
import Hydra.Chain (HeadParameters (..), OnChainTx (OnInitTx))
import qualified Hydra.Contract.Head as Head
import qualified Hydra.Contract.Initial as Initial
import Hydra.Data.ContestationPeriod (contestationPeriodFromDiffTime, contestationPeriodToDiffTime)
Expand Down Expand Up @@ -198,7 +198,7 @@ observeInitTx ValidatedTx{wits} st =
_firstInput = error "undefined"

observeAbortTx :: ValidatedTx Era -> OnChainHeadState -> (Maybe (OnChainTx tx), OnChainHeadState)
observeAbortTx _ st = (Just OnAbortTx, st)
observeAbortTx _ st = (Nothing, st)
--

-- * Helpers
Expand Down

0 comments on commit 006d74d

Please sign in to comment.