Risks of Validating
What a validator must do once it is in the set, what gets it removed by a slashing motion, what removal costs, and the operational and staking risks to plan for.
Your key joins the validator set when a new epoch starts and it is either one of the top 33 solvers of the previous epoch or backed by at least 1,000,000 AMA in staking vaults. See Building your Score for the rules.
Check whether you are in the set
/api/chain/stats reports in_validator_set for every validator and staked key:
curl -s https://mainnet-rpc.ama.one/api/chain/stats | jq '.stats.validators["<your_pk>"].in_validator_set'
# true
Keys removed during the current epoch are listed by /api/peer/removed_trainers:
curl -s https://mainnet-rpc.ama.one/api/peer/removed_trainers
# {"error":"ok","removed_trainers":[]}
Your job in the set
Validators take turns producing entries (blocks). Each slot is 500 ms. When it is your turn, your node must produce the entry on time, every time, until the epoch ends.
Other validators watch for four kinds of failure:
- Stalled. Your slot came and no entry arrived within 8 seconds of the previous one (30 seconds for the last entry of an epoch).
- Slow. Over your last 10 entries, the average time between the previous entry and yours is above 600 ms.
- Offline. Your key is not reachable as a peer and has not signed any recent entry, in every one of a node's once-a-minute checks over about ten minutes.
- Double entry. Your key signed two different entries at the same height. This is why the same seeds must never run on two independent nodes.
/api/peer/trainers shows slot_speed for each validator it lists: the rolling average in milliseconds, as measured by the node that answers.
Slashing motions
A validator that fails can be removed from the set by a slashing motion (a "special meeting"):
- A node proposes the removal of one validator. Each other validator signs only if its own node sees one of the failures above for that key.
- The motion takes effect only with signatures from at least 67% of the active validator set. It is then applied on chain as
Epoch.slash_trainer, and the key leaves the active set for the rest of the epoch. - Nodes start motions on their own only when they run with
AUTOSLASH=true. Even then, a stalled validator gets 16 extra seconds of grace on top of the 8 or 30 seconds before a motion starts. WithoutAUTOSLASH, motions are started by hand. - A node never proposes or signs a motion against its own keys.
What removal costs
- The key earns no solver emission for that epoch, and its sols do not count toward the next validator set.
- Vaults that back the key earn no yield for that epoch.
- If the key solves with the built-in solver, the solver skips it until the next epoch and prints
🔴 key <pk> was slashed/removed from epoch <epoch>, skipping until next epoch. - A vault-backed key with at least 1,000,000 AMA of backing can still enter the next epoch's set through the vault path.
Removal does not take AMA from the key's balance or from its vaults.
Operational risks
- Boolean environment variables.
OFFLINE,TESTNETandCOMPUTORswitch on when they are set to anything, includingfalse. A validator started withOFFLINE=falsenever connects to peers and misses every slot. Leave these variables unset unless you want them on. See Node configuration. - The same seeds on two nodes. Two independent nodes with the same key both produce entries for its slots, which other validators treat as a double entry. For redundancy, use a replica cluster.
- Clock drift. Slots are 500 ms. Keep NTP running; the node warns at startup when
timedatectldoes not report a synchronized clock. - Restarts. With
AUTOUPDATE=truethe node exits after installing a new release (a validator finishes its slot first) and relies on systemd to start it again. Without a supervisor, the node stays down. See Running a Node. - Unfunded keys. Every
Epoch.submit_solreserves 0.01 AMA from the signer. The built-in solver skips keys below that, so a key that runs dry stops building score. - Lost keys. The
seedsfile is the validator. Back it up; anyone who copies it controls the validator and its rewards.
Staking risks
If you validate with vault backing, or back someone else's validator:
- Locks. A vault cannot be unlocked before its tier's lock ends, and unlocking then takes 21 days (37 epochs) before the AMA returns to the owner.
- Delegation delay. Moving a vault to another validator takes two epochs to go live.
- Commission. The validator sets its own commission, up to 100% of vault yield. A raise takes effect three epochs after it is set, which is the warning vault owners get.
- No yield outside the set. Vaults earn nothing for an epoch in which their validator is not in the set, including when it was removed by a motion.
- New vaults. In node v1.6.5, new vaults can only be created on testnet.