Grandpa::Error
Variant 155 v411pallet_grandpa::pallet::Error
The `Error` enum of this pallet.
About This Type
Error enum for the Error pallet.
Contains all error types that the Error pallet can return when a call fails.
Variants (7)
| Index | Name | Fields | Docs |
|---|---|---|---|
| 0 | PauseFailed | none | Attempt to signal GRANDPA pause when the authority set isn't live (either paused or already pending pause). |
| 1 | ResumeFailed | none | Attempt to signal GRANDPA resume when the authority set isn't paused (either live or already pending resume). |
| 2 | ChangePending | none | Attempt to signal GRANDPA change with one already pending. |
| 3 | TooSoon | none | Cannot signal forced change so soon after last. |
| 4 | InvalidKeyOwnershipProof | none | A key ownership proof provided as part of an equivocation report is invalid. |
| 5 | InvalidEquivocationProof | none | An equivocation proof provided as part of an equivocation report is invalid. |
| 6 | DuplicateOffenceReport | none | A given equivocation report is valid but already previously reported. |
SCALE Encoding
- Rule
- 1-byte variant index followed by variant-specific field data. 7 possible variants.
- Size
- variable (1+ bytes)
Examples
PauseFailed
0x0000 Variant index 0 = PauseFailedResumeFailed
0x0101 Variant index 1 = ResumeFailedChangePending
0x0202 Variant index 2 = ChangePendingCode Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode Grandpa::Error — variant "PauseFailed"
const value = registry.createType("Grandpa::Error", "PauseFailed");
console.log("Hex:", value.toHex());Type Parameters
T
Also See
Type Information
- Type ID
- 155
- Kind
- Variant
- Path
- pallet_grandpa::pallet::Error
- Runtime
- v411