-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5cde764
commit 28b07fe
Showing
3 changed files
with
57 additions
and
58 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
--- | ||
title: Enable shut down Validator Client if any owned validator is slashed | ||
description: Shut down the validator client if any owned validator is slashed. | ||
sidebar_position: 8 | ||
--- | ||
|
||
# Shut down the validator client if any owned validator is slashed | ||
|
||
When enabled, this feature will monitor the validators slashing and shut down the validator client when any of the owned validator is slashed. | ||
|
||
When enabled, the validator client will shut down with exit code `2` if any owned validator is slashed (based on the attester and proposer slashing events received through the peer to peer network). | ||
When that happens, the validator client should not be restarted by default because more slashing are likely to happen. We recommend restarting the validator client with the [Doppelganger Detection](./enable-doppelganger-detection.md) enabled. | ||
|
||
:::warning | ||
|
||
This feature is imperfect and might fail to detect slashing events rapidly. Use it as a last resort option that might prevent validators from being slashed. | ||
|
||
::: | ||
|
||
## Enable shut down Validator Client if any owned validator is slashed | ||
|
||
Enable this feature by setting the [`--stop-vc-when-validator-slashed-enabled`](../reference/cli/index.md#stop-vc-when-validator-slashed-enabled) option to `true`. | ||
|
||
Your validator client must be connected to a beacon node that supports the `proposer_slashing` and `attester_slashing` SSE event streams (both supported by Teku beacon node). | ||
|
||
## Side effects | ||
|
||
The Validator Client shut down is intended to prevent a massive slashing. | ||
When triggered, the validator client will terminate and all the running validators will stop performing their duties. | ||
|
||
:::warning | ||
|
||
Stopping the validators might cause: | ||
|
||
- Missed attestations. | ||
- Missed sync committee contributions. | ||
- Missed block proposals. | ||
|
||
These side effects result in penalties and missed rewards. | ||
|
||
::: | ||
|
||
You might still consider these side effects a worthwhile trade-off since they can prevent more slashing. | ||
|
||
## Logs | ||
|
||
When enabled, the following log will be printed when any owned validator is slashed: | ||
|
||
```bash title="Example validator client shut down when an owned validator is slashed" | ||
Validator(s) with public key(s) {} got slashed: b28ab22. Shutting down validator client... | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters