LumiWave Protocol

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.

ParameterValueDescription
signed_blocks_window100Signing tracking window (in blocks)
min_signed_per_window50%Minimum signing ratio
slash_fraction_downtime0.01%Downtime slashing ratio
downtime_jail_duration600s (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.

ParameterValueDescription
slash_fraction_double_sign5%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.json together 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
FieldDescription
jailed_untilEarliest time when unjail is possible
missed_blocks_counterNumber of missed blocks in the current window
tombstonedIf true, permanently deactivated due to double signing

Unjail Procedure

  1. Identify the cause: If downtime, recover the node; if double signing, resolve the key conflict
  2. Wait for jail duration to elapse: Minimum 600 seconds (10 minutes)
  3. Send unjail transaction:
lumiwave-protocold tx slashing unjail \
  --from=validator \
  --keyring-backend=file \
  --fees=2500ulwp

Tombstone

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 required

Tombstone is irreversible. This is why preventing double signing is critically important.

Prevention Methods

Preventing Downtime

  1. Monitoring is essential: Monitor node status with Prometheus + Grafana
  2. Set up alerting: Get immediate notifications when downtime occurs
  3. Use Cosmovisor: Automatic binary replacement during chain upgrades
  4. Configure sentry nodes: Protect the validator from DDoS attacks
  5. systemd service: Automatic restart on process crash
[Service]
Restart=on-failure
RestartSec=3

Preventing Double Signing

  1. Use one key on only one node
  2. Always stop the old node first during migration
  3. Migrate priv_validator_state.json together
  4. 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"

On this page