MaxNominators

Constant v151 → current u32

Limits the size of key ownership proofs in equivocation reports.

Current Value

20
Relevant for: validatorsdevelopers

The Big Picture

Key ownership proofs for equivocation reports include nominator data. This constant limits how many nominators can be included, bounding proof size and validation cost. Relevant when your staking system has nomination delegation.

Why This Matters

When reporting equivocations, you must prove the offender owned their key. This proof includes nomination data, and its size is bounded by this constant.

Example

MaxNominators is 20. Key ownership proofs can reference up to 20 nominators per validator. If a validator has more, the proof uses a subset.

Common Questions

How does this affect normal users?
It doesn't directly. This is an internal limit for the equivocation proof system. Regular users don't construct these proofs - validators do.

From Chain Metadata

The maximum number of nominators for each validator.

Use Cases

  • Understand equivocation proof size limits
  • Design nomination systems within bounds

Code Examples

import { ApiPromise, WsProvider } from "@polkadot/api";
import { stringCamelCase } from "@polkadot/util";

const provider = new WsProvider("wss://entrypoint-finney.opentensor.ai:443");
const api = await ApiPromise.create({ provider });

// Query MaxNominators constant
const value = api.consts[stringCamelCase("Grandpa")][stringCamelCase("MaxNominators")];
console.log("MaxNominators:", value.toHuman());

Type Information

Type
u32
Byte Size
4 bytes
Encoding
fixed
Raw Hex
0x14000000

Runtime Info

Pallet
Grandpa
First Version
v151
Latest Version
v151
Current Runtime
v393