Skip to content

Commit

Permalink
minor fmt changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ffakenz committed Feb 11, 2025
1 parent 662fddd commit 4fb890b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions hydra-node/json-schemas/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ channels:
servers:
- localhost-http
publish:
description: Clear pending tx in local state and resume UTxO to latest confirmed snapshot.
description: Clear pending txs in local state and reset local UTxO to latest confirmed snapshot.
operationId: clearPendingTxs
message:
payload:
Expand Down Expand Up @@ -484,7 +484,7 @@ components:
ClearPendingTxs:
title: ClearPendingTxs
description: |
Prune local pending txs. This restore the head to the previous confirmed snapshot.
Prune local pending txs. This reset the local head state to latest confirmed snapshot.
payload:
type: object
required:
Expand Down
3 changes: 1 addition & 2 deletions hydra-node/src/Hydra/HeadLogic.hs
Original file line number Diff line number Diff line change
Expand Up @@ -965,8 +965,7 @@ onOpenChainDepositTx headId env st deposited depositTxId deadline =
newState CommitRecorded{pendingDeposits = Map.singleton depositTxId deposited, newLocalUTxO = localUTxO <> deposited}
<> cause (ClientEffect $ ServerOutput.CommitRecorded{headId, utxoToCommit = deposited, pendingDeposit = depositTxId, deadline})
<> if not snapshotInFlight && isLeader parameters party nextSn
then
cause (NetworkEffect $ ReqSn version nextSn (txId <$> localTxs) Nothing (Just deposited))
then cause (NetworkEffect $ ReqSn version nextSn (txId <$> localTxs) Nothing (Just deposited))
else noop
where
waitOnUnresolvedDecommit cont =
Expand Down

0 comments on commit 4fb890b

Please sign in to comment.