Skip to content

Commit

Permalink
Merge pull request #1424 from input-output-hk/ffakenz/tui-handle-head…
Browse files Browse the repository at this point in the history
…_is_contested

TUI logs info on HeadIsContested
  • Loading branch information
ffakenz authored May 10, 2024
2 parents 6d75c29 + cdfef3b commit 4791447
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hydra-tui/src/Hydra/TUI/Handlers.hs
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,8 @@ handleHydraEventsInfo = \case
warn time $ "Invalid command: " <> show clientInput
Update TimedServerOutput{time, output = HeadIsClosed{snapshotNumber}} -> do
info time $ "Head closed with snapshot number " <> show snapshotNumber
Update TimedServerOutput{time, output = HeadIsContested{snapshotNumber, contestationDeadline}} -> do
info time ("Head contested with snapshot number " <> show snapshotNumber <> " and deadline " <> show contestationDeadline)
Update TimedServerOutput{time, output = TxValid{}} ->
report Success time "Transaction submitted successfully!"
Update TimedServerOutput{time, output = TxInvalid{transaction, validationError}} ->
Expand Down

0 comments on commit 4791447

Please sign in to comment.