Slashing
Validator slashing conditions, penalties, and prevention methods
What is Slashing?
Slashing is a mechanism that deducts a portion of delegated tokens when a validator violates network rules. It is a core incentive structure designed to maintain network stability and security. Not only the validator's tokens but also the tokens of all delegators who delegated to that validator are slashed at the same rate. LumiWave uses the standard slashing module from Cosmos SDK.
Slashing Conditions
1. Downtime (Liveness Fault)
Occurs when a validator fails to participate in block signing for a certain period. Common causes include server failures, network issues, and process crashes. This is the most frequently occurring type of slashing.
| Parameter | Value | Description |
|---|---|---|
signed_blocks_window | 100 | Signing tracking window (in blocks) |
min_signed_per_window | 50% | Minimum signing ratio |
slash_fraction_downtime | 0.01% | Downtime slashing ratio |
downtime_jail_duration | 600s (10 min) | Minimum jail duration |
In other words, if a validator fails to sign more than 50 out of the last 100 blocks, it will be jailed.
If a validator is jailed, it cannot participate in block signing. Be sure to set up monitoring and alerting.
2. Double Signing (Equivocation)
Occurs when a validator signs two different blocks at the same height. This is a far more serious violation than downtime — the slashing rate is much higher and the validator is tombstoned, permanently preventing it from validating with that key.
| Parameter | Value | Description |
|---|---|---|
slash_fraction_double_sign | 5% | Double signing slashing ratio |
Double signing typically occurs in the following situations:
- Two nodes running simultaneously with the same
priv_validator_key.json - Failing to stop the old node during validator migration
- Not restoring
priv_validator_state.jsontogether when restoring from backup
Jail and Unjail
When slashing conditions are met, the validator is automatically placed in jail status. A jailed validator cannot participate in block signing and must manually send an unjail transaction after the jail period has elapsed to become active again.
Checking Jail Status
# Query signing info
lumiwave-protocold query slashing signing-info \
$(lumiwave-protocold tendermint show-validator)Example output:
address: lumivalcons1...
index_offset: "12345"
jailed_until: "2024-01-01T00:00:00Z"
missed_blocks_counter: "55"
start_height: "1000"
tombstoned: false| Field | Description |
|---|---|
jailed_until | Earliest time when unjail is possible |
missed_blocks_counter | Number of missed blocks in the current window |
tombstoned | If true, permanently deactivated due to double signing |
Unjail Procedure
- Identify the cause: If downtime, recover the node; if double signing, resolve the key conflict
- Wait for jail duration to elapse: Minimum 600 seconds (10 minutes)
- Send unjail transaction:
lumiwave-protocold tx slashing unjail \
--from=validator \
--keyring-backend=file \
--fees=2500ulwpTombstone
Slashing due to double signing results in a tombstone state. A tombstoned validator can no longer validate with that key, and unjail is not possible. You must generate a new validator key and perform create-validator again.
tombstoned: true # Permanently deactivated — a new validator key is requiredTombstone is irreversible. This is why preventing double signing is critically important.
Prevention Methods
Preventing Downtime
- Monitoring is essential: Monitor node status with Prometheus + Grafana
- Set up alerting: Get immediate notifications when downtime occurs
- Use Cosmovisor: Automatic binary replacement during chain upgrades
- Configure sentry nodes: Protect the validator from DDoS attacks
- systemd service: Automatic restart on process crash
[Service]
Restart=on-failure
RestartSec=3Preventing Double Signing
- Use one key on only one node
- Always stop the old node first during migration
- Migrate
priv_validator_state.jsontogether - Be cautious when restoring from backup:
# Always restore the state file together when restoring
cp backup/priv_validator_key.json ~/.lumiwave-protocol/config/
cp backup/priv_validator_state.json ~/.lumiwave-protocol/data/Monitoring Alert Rule Example
# Validator missed blocks alert
- alert: ValidatorMissedBlocks
expr: increase(cometbft_consensus_validator_missed_blocks[5m]) > 10
for: 1m
labels:
severity: critical
annotations:
summary: "Validator missed block count increasing"Related Documents
- Become a Validator — Validator creation
- Key Management — Key security and migration
- Chain Parameters — Detailed slashing parameters
- FAQ — Validator operation FAQ