threefoldtecharchive / threefold_hub

Apache License 2.0
0 stars 2 forks source link

What parameters to set in slashing #52

Open OmarElawady opened 2 years ago

OmarElawady commented 2 years ago

How should it be set for gravity and for validator downtime?

In Cosmos Hub 3 the default values are modified from the default values as indicated here.

The default module values are:

      "params": {
        "signed_blocks_window": "100",
        "min_signed_per_window": "0.500000000000000000",
        "downtime_jail_duration": "600s",
        "slash_fraction_double_sign": "0.050000000000000000",
        "slash_fraction_downtime": "0.010000000000000000"
      }

The default of 100 block and an average of 5 seconds per block means that validators a downtime of 5 minutes can cause the slashing.

And for the gravity module:

{
        "signed_valsets_window": "10000",
        "signed_batches_window": "10000",
        "signed_logic_calls_window": "10000",
        "slash_fraction_valset": "0.001000000000000000",
        "slash_fraction_batch": "0.001000000000000000",
        "slash_fraction_logic_call": "0.001000000000000000",
        "unbond_slashing_valsets_window": "10000",
        "slash_fraction_bad_eth_signature": "0.001000000000000000",
}
xmonader commented 2 years ago

I'd increase the jailed downtime to 10mins @robvanmieghem what do you suggest?