When someone calls extend() with a deposit during active safe-mode, this many blocks are added to the current EnteredUntil value. Allows accumulating protection.
Current Value
0Relevant for: validatorsdevelopers
The Big Picture
Sometimes one EnterDuration isn't enough. Extensions allow continuous safe-mode without governance intervention. Each extension costs another deposit.
From Chain Metadata
For how many blocks the safe-mode can be extended by each [`Pallet::extend`] call. This does not impose a hard limit as the safe-mode can be extended multiple times.
Use Cases
- Calculate extended safe-mode end time
- Plan extension timing
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 ExtendDuration constant
const value = await api.constants.SafeMode.ExtendDuration();
console.log("ExtendDuration:", value);Type Information
- Type
- u32
- Byte Size
- 4 bytes
- Encoding
- fixed
- Raw Hex
- 0x00000000
Runtime Info
- Pallet
- SafeMode
- First Version
- v154
- Latest Version
- v154
- Current Runtime
- v411