Skip to content

Commit

Permalink
Add a TODO in the AckTx handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ch1bo committed Jun 16, 2021
1 parent 219289a commit ad4728b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hydra-node/src/Hydra/HeadLogic.hs
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ update Environment{party, snapshotStrategy} ledger (HeadState p st) ev = case (s
Invalid _ -> panic "TODO: wait until it may be applied"
Valid -> newState p st [NetworkEffect $ AckTx party tx]
(OpenState headState@SimpleHeadState{confirmedUTxO, confirmedTxs, confirmedSnapshot, unconfirmedTxs}, NetworkEvent (AckTx otherParty tx)) ->
-- TODO(SN): check signature of AckTx and we would not send the tx around, so some more bookkeeping is required here
case applyTransactions ledger confirmedUTxO [tx] of
Left err -> panic $ "TODO: validation error: " <> show err
Right utxo' -> do
Expand Down

0 comments on commit ad4728b

Please sign in to comment.