From dafc6d55ed5715cb55e57d513288b38410c0ac40 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 12 Oct 2023 13:41:14 +0000 Subject: [PATCH] chore: decrease `SlashFractionDoubleSign` to 2% (backport #2630) (#2666) This is an automatic backport of pull request #2630 done by [Mergify](https://mergify.com). ---
Mergify commands and options
More conditions and actions can be found in the [documentation](https://docs.mergify.com/). You can also trigger Mergify actions by commenting on this pull request: - `@Mergifyio refresh` will re-evaluate the rules - `@Mergifyio rebase` will rebase this PR on its base branch - `@Mergifyio update` will merge the base branch into this PR - `@Mergifyio backport ` will backport this PR on `` branch Additionally, on Mergify [dashboard](https://dashboard.mergify.com) you can: - look at your merge queues - generate the Mergify configuration with the config editor. Finally, you can contact us on https://mergify.com
Co-authored-by: Chirag <56735482+Chirag018@users.noreply.github.com> --- app/default_overrides.go | 2 +- specs/src/specs/params.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/default_overrides.go b/app/default_overrides.go index c051ebc83d..ec35228443 100644 --- a/app/default_overrides.go +++ b/app/default_overrides.go @@ -98,7 +98,7 @@ func (slashingModule) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage { params.MinSignedPerWindow = sdk.NewDecWithPrec(75, 2) // 75% params.SignedBlocksWindow = 5000 params.DowntimeJailDuration = time.Minute * 1 - params.SlashFractionDoubleSign = sdk.NewDecWithPrec(5, 2) // 5% + params.SlashFractionDoubleSign = sdk.NewDecWithPrec(2, 2) // 2% params.SlashFractionDowntime = sdk.ZeroDec() // 0% return cdc.MustMarshalJSON(&slashingtypes.GenesisState{ diff --git a/specs/src/specs/params.md b/specs/src/specs/params.md index 9e094741ce..4282eecdb7 100644 --- a/specs/src/specs/params.md +++ b/specs/src/specs/params.md @@ -44,7 +44,7 @@ are blocked by the `x/paramfilter` module. | slashing.SignedBlocksWindow | 5000 | The range of blocks used to count for downtime. | True | | slashing.MinSignedPerWindow | 0.75 (75%) | The percentage of SignedBlocksWindow that must be signed not to get jailed. | True | | slashing.DowntimeJailDuration | 1 min | Duration of time a validator must stay jailed. | True | -| slashing.SlashFractionDoubleSign | 0.05 (5%) | Percentage slashed after a validator is jailed for double signing. | True | +| slashing.SlashFractionDoubleSign | 0.02 (2%) | Percentage slashed after a validator is jailed for double signing. | True | | slashing.SlashFractionDowntime | 0.00 (0%) | Percentage slashed after a validator is jailed for downtime. | True | | staking.UnbondingTime | 1814400 (21 days) | Duration of time for unbonding in seconds. | False | | staking.MaxValidators | 100 | Maximum number of validators. | False |