diff --git a/hydra-node/json-schemas/api.yaml b/hydra-node/json-schemas/api.yaml index 5aeeafbfa64..b37f370e1b9 100644 --- a/hydra-node/json-schemas/api.yaml +++ b/hydra-node/json-schemas/api.yaml @@ -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: @@ -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: diff --git a/hydra-node/src/Hydra/HeadLogic.hs b/hydra-node/src/Hydra/HeadLogic.hs index 84e3dc4586c..e84698ca4f9 100644 --- a/hydra-node/src/Hydra/HeadLogic.hs +++ b/hydra-node/src/Hydra/HeadLogic.hs @@ -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 =