| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
Hydra.HeadLogic.Error
Description
Error types used in the Hydra.HeadLogic module.
Documentation
data LogicError tx Source #
Constructors
| UnhandledInput | |
Fields
| |
| RequireFailed | |
Fields | |
| AssertionFailed | |
Fields
| |
| NotOurHead | |
Fields
| |
| SideLoadSnapshotFailed | |
Fields | |
Instances
data RequirementFailure tx Source #
Constructors
| ReqSnNumberInvalid | |
Fields
| |
| ReqSvNumberInvalid | |
Fields
| |
| ReqSnNotLeader | |
Fields
| |
| ReqSnDecommitNotSettled | |
| ReqSnCommitNotSettled | |
| ReqSnBothCommitAndDecommit | A snapshot may settle a commit or a decommit, never both: close and fanout carry a single incremental action, so a snapshot with both would leave the head unclosable. |
Fields
| |
| ReqSnDecommitNoOutputs | A decommit that materializes no output cannot be settled: the decrement validator requires at least one decommit output. |
Fields
| |
| InvalidMultisignature | |
| SnapshotAlreadySigned | |
Fields
| |
| AckSnNumberInvalid | |
Fields
| |
| SnapshotDoesNotApply | |
Fields
| |
| NoMatchingDeposit | |
| RecoverBlockedByFinalizedCommit | The deposit is claimed by a signed snapshot whose increment settled on-chain but was rolled back: its funds are already accounted for in the head, so recovering them on-chain would corrupt the L2 ledger. The increment is re-posted instead, see #2741. |
Fields
| |
| ReqSnDepositBlockedByFinalizedCommit | The requested deposit is claimed by an already signed snapshot whose increment settled on-chain but was rolled back (which is the only way it resurfaces in the pending deposits): signing a second snapshot claiming it would double claim the deposit. Only re-posting the increment settles it, see #2741. |
Fields
| |
| RequestedDepositExpired | |
Fields
| |
| RequestedDepositNotFoundLocally | |
Fields
| |
| ReqSnUTxOSetTooLarge | |
Fields
| |
Instances
data SideLoadRequirementFailure tx Source #
Constructors
| SideLoadInitialSnapshotMismatch | |
| SideLoadSnNumberInvalid | |
Fields
| |
| SideLoadSvNumberInvalid | |
Fields
| |
| SideLoadUTxOToCommitInvalid | |
Fields
| |
| SideLoadDepositTxIdInvalid | The side-loaded snapshot commits the same UTxO as the confirmed one, but
from a different deposit. Since the deposit is what identifies a pending
commit, this is a distinct disagreement from |
Fields
| |
| SideLoadUTxOToDecommitInvalid | |
Fields
| |
| SideLoadInvalidMultisignature | |
| SideLoadUTxOSetTooLarge | The snapshot commits to more outputs than the accumulator's trusted setup supports, so its commitment could never be computed. SECURITY: unlike its siblings, this one is raised at the client API
boundary rather than by the head logic, and it has to be: forcing an
over-capacity accumulator calls
|
Fields
| |