Skip to content

Commit

Permalink
Addition of slashing parameters to give a better explanation of what …
Browse files Browse the repository at this point in the history
…validators should expect if they get slashed (#542)
  • Loading branch information
emperorjm authored Nov 1, 2024
1 parent c9d30f5 commit 243c762
Showing 1 changed file with 27 additions and 6 deletions.
33 changes: 27 additions & 6 deletions content/4.validators/2.becoming-a-validator/1.overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,38 @@ Validators participate in the consensus protocol by broadcasting votes which con

## Slashing

Slashing is the mechanism that penalizes validators, and as a result, their delegators, for violating certain rules.
Slashing is the mechanism that penalizes validators, and as a result, their delegators, for violating certain rules. Validators need to be careful in adopting the necessary measures to prevent being slashed, as the funds of both the validator and its delegators are subjected to slashing penalties.

Validators need to be careful in adopting the necessary measures to prevent being slashed, as the funds of both the validator and its delegators are subjected to slashing penalties.
Here’s an example of the slashing parameters on Archway. Please note that these values might not reflect the current settings on either `mainnet` or `testnet`; they are only provided to illustrate possible values:

```json
{
"params": {
"signed_blocks_window": "10000",
"min_signed_per_window": "0.500000000000000000",
"downtime_jail_duration": "600s",
"slash_fraction_double_sign": "0.050000000000000000",
"slash_fraction_downtime": "0.000100000000000000"
}
}
```

To confirm the latest slashing parameters, you can check the following URLs:

- **Mainnet Parameters:** [Archway Mainnet Slashing Params](https://api.mainnet.archway.io/cosmos/slashing/v1beta1/params)
- **Testnet Parameters:** [Archway Testnet Slashing Params](https://api.constantine.archway.io/cosmos/slashing/v1beta1/params)

Misbehaviors subjected to slashing include:

- **Downtime** (soft slashing):
When a validator is offline and does not participate in block signing for a certain amount of time, it gets slashed. Slashing leads to a small loss of staked tokens, on top of not earning new rewards for the duration of the downtime.
- **Downtime** (soft slashing):
If a validator goes offline and fails to participate in block signing within a specified window, it incurs a slashing penalty. This results in a reduction in staked tokens, along with forfeited rewards during the offline period. On Archway:
- **Downtime Penalty**: Validators and their delegators lose a portion of their total stake, for instance, *0.01%* based on the example above.
- **Jail Duration**: According to the example, validators would be jailed for *600 seconds* before being allowed to rejoin the network.

- **Double signing** (hard slashing):
This occurs when a validator signs two different blocks at the same height in the network. The penalty is considerably higher, as it involves a higher loss of staked tokens, permanent jail time as the validator is disqualified from participating in the network.
- **Double Signing** (hard slashing):
Double signing occurs when a validator signs two conflicting blocks at the same block height, posing a serious risk to network security. The penalty for this is much higher:
- **Double Signing Penalty**: In the example above, validators and delegators would lose *5%* of their total staked tokens.
- **Jail Duration**: Double-signing typically results in permanent jail time, disqualifying the validator from further participation in the network.


## Considerations
Expand Down

0 comments on commit 243c762

Please sign in to comment.