From 243c762d075991535568599eafd08e9358468ca8 Mon Sep 17 00:00:00 2001 From: Adrian Thompson Date: Thu, 31 Oct 2024 22:10:50 -0500 Subject: [PATCH] Addition of slashing parameters to give a better explanation of what validators should expect if they get slashed (#542) --- .../2.becoming-a-validator/1.overview.md | 33 +++++++++++++++---- 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/content/4.validators/2.becoming-a-validator/1.overview.md b/content/4.validators/2.becoming-a-validator/1.overview.md index 750e0d34..db5eb29c 100644 --- a/content/4.validators/2.becoming-a-validator/1.overview.md +++ b/content/4.validators/2.becoming-a-validator/1.overview.md @@ -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