Stalled
Storage Plain v101 → currentIndicates GRANDPA has stalled with (delay, best_finalized_block).
Explore chainQueried by: validatorsdevelopers
The Big Picture
When note_stalled is called, this storage records the stall. Contains the delay before forced change takes effect and the last finalized block. Presence indicates emergency recovery is in progress.
Use Cases
- Check if finality is stalled
- Monitor for consensus failures
- Build alerting systems for finality issues
From Chain Metadata
`true` if we are currently stalled.
Purpose & Usage
Purpose
Records stall conditions for scheduled forced authority changes.
Common Query Patterns
- Single value query (None if not stalled)
Stored Value
- .0 delay — Delay (in blocks) for the GRANDPA stall: how long the protocol should wait before attempting recovery. Standard pallet_grandpa storage.
- .1 best_finalized_block_number — Best finalized block number at the point of the stall — the reference block from which the delay is counted. Standard pallet_grandpa storage.
Default Value
None (absent keys return no value)
Optional storage: querying a key that has never been written returns no value (None) — do not assume a zero default.
Relationships
Modified By
Code Examples
import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add sub -w wss://entrypoint-finney.opentensor.ai:443
const client = createClient(getWsProvider("wss://entrypoint-finney.opentensor.ai:443"));
const api = client.getTypedApi(sub);
// Query Stalled storage (no keys - plain value)
const result = await api.query.Grandpa.Stalled.getValue();
console.log("Stalled:", result);Runtime Info
- Pallet
- Grandpa
- Storage Kind
- Plain
- First Version
- v101
- Current Version
- v472