Skip to content

Commit

Permalink
Merge pull request #217 from anoma/bengt/unjail
Browse files Browse the repository at this point in the history
unjail added and duplicate doc removed
  • Loading branch information
bengtlofgren authored Dec 5, 2023
2 parents 03b9d0a + d91991a commit 05241eb
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 130 deletions.
3 changes: 2 additions & 1 deletion packages/docs/pages/operators/validators/_meta.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"validator-setup": "Validator setup",
"staking": "Staking"
"staking": "Staking",
"proof-of-stake": "Proof of stake"
}
128 changes: 0 additions & 128 deletions packages/docs/pages/operators/validators/genesis-validator-setup.mdx

This file was deleted.

20 changes: 19 additions & 1 deletion packages/docs/pages/operators/validators/proof-of-stake.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,22 @@ In order to query the current epoch, the following command can be run:

```shell copy
namada client epoch
```
```

## Slashing

Validators on Namada are slashed for misbehavior. Automatic slashing conditions are defined by the CometBFT, but validators can also report misbehavior by other validators. If a validator is deemed to have misbehaved, they are slashed by a certain amount of their stake. The amount of stake slashed, as well as the time required for the slash to take effect (pipeline) is defined by protocol parameters.

## Jailing

Validators on Namada are jailed for either misbehaviour or for being offline for too long. If a number of blocks pass (also defined in the protocol parameters under `liveness_window_check`) in which none have been signed by the validator in question, the validator is jailed.

When a validator is jailed, they are unable to participate in the consensus protocol. A validator is jailed for at least the pipeline amount of epochs, but must be unjailed manually by the validator. This is done by submitting an `unjail-validator` command.

```bash
VALIDATOR_ALIAS="<your-validator-alias>"
SIGNING_KEYS="<your-signing-key(s)>"
namada client unjail-validator --validator $VALIDATOR_ALIAS --signing-keys $SIGNING_KEYS
```

If successful, the validator will be unjailed after the pipeline amount of epochs, and is able to participate in the consensus protocol again.

0 comments on commit 05241eb

Please sign in to comment.