slashing-protection
Manage the local slashing protection data used by the validator.
import
Imports the slashing protection database using the validator client interchange format.
Before running the import, you must stop the validator and confirm the process has fully exited and won't be restarted.
config-file
- Syntax
- Example
- Environment variable
teku slashing-protection import --config-file=<FILE>
teku slashing-protection import --config-file=/home/me/me_node/config.yaml
TEKU_CONFIG_FILE=/home/me/me_node/config.yaml
Path to the YAML configuration file. The default is none
.
data-path
- Syntax
- Example
teku slashing-protection import --data-path=<PATH>
teku slashing-protection import --data-path=/home/me/me_node
Path to the Teku data directory. The default directory is OS-dependent:
- macOS:
~/Library/teku
- Unix/Linux:
$XDG_DATA_HOME/teku
if$XDG_DATA_HOME
is set; otherwise~/.local/share/teku
- Windows:
%localappdata%\teku
.
data-validator-path
- Syntax
- Example
- Environment variable
- Configuration file
teku slashing-protection import --data-validator-path=<PATH>
teku slashing-protection import --data-validator-path=/home/me/me_validator
TEKU_DATA_VALIDATOR_PATH=/home/me/me_validator
data-validator-path: "/home/me/me_validator"
Path to the validator client data. The default is <data-path>/validator
where <data-path>
is specified using --data-path
.
Teku imports slashing protection data into a slashprotection
directory under the validator client data directory.
from
- Syntax
- Example
teku slashing-protection import --from=<FILE>
teku slashing-protection import --from=/home/slash/b845...23bed.json
The file to import the slashing protection database from.
Teku imports the file to the <data-path>/validators/slashprotection/
directory in the format <validator-pubkey>.yml
(with no 0x prefix).
<data-path>
is defined using --data-path
.
export
Exports the slashing protection database in the validator client interchange format format.
config-file
- Syntax
- Example
- Environment variable
teku slashing-protection export --config-file=<FILE>
teku slashing-protection export --config-file=/home/me/me_node/config.yaml
TEKU_CONFIG_FILE=/home/me/me_node/config.yaml
Path to the YAML configuration file. The default is none
.
data-path
- Syntax
- Example
teku slashing-protection export --data-path=<PATH>
teku slashing-protection export --data-path=/home/me/me_node
Path to the Teku data directory. The default directory is OS-dependent:
- macOS:
~/Library/teku
- Unix/Linux:
$XDG_DATA_HOME/teku
if$XDG_DATA_HOME
is set; otherwise~/.local/share/teku
- Windows:
%localappdata%\teku
.
data-validator-path
- Syntax
- Example
- Environment variable
- Configuration file
teku slashing-protection export --data-validator-path=<PATH>
teku slashing-protection export --data-validator-path=/home/me/me_validator
TEKU_DATA_VALIDATOR_PATH=/home/me/me_validator
data-validator-path: "/home/me/me_validator"
Path to the validator client data. The default is <data-path>/validator
where <data-path>
is specified using --data-path
.
Teku exports slashing protection data from the slashprotection
directory under the validator client data directory.
to
- Syntax
- Example
teku slashing-protection export --to=<FILE>
teku slashing-protection export --to=/home/slash/b845...23bed.json
The file to export the slashing protection database to.
Exports the database in the validator client interchange format format.
repair
Repairs corrupted slashing protection data files used by Teku.
check-only-enabled
- Syntax
- Example
teku slashing-protection repair --checking-only-enabled[=<BOOLEAN>]
teku slashing-protection repair --checking-only-enabled=false
Reads and reports potential slashing protection file problems, but doesn't update any files. You can specify which files are checked using --config-file
, --data-base-path
.
config-file
- Syntax
- Example
teku slashing-protection repair --config-file=<FILE>
teku slashing-protection repair --config-file=/home/me/me_node/config.yaml
Path to the YAML configuration file. The default is none
.
data-path
- Syntax
- Example
teku slashing-protection repair --data-path=<PATH>
teku slashing-protection repair --data-path=/home/me/me_node
Path to the Teku data directory. The default directory is OS-dependent:
- macOS:
~/Library/teku
- Unix/Linux:
$XDG_DATA_HOME/teku
if$XDG_DATA_HOME
is set; otherwise~/.local/share/teku
- Windows:
%localappdata%\teku
The default Docker image location is /root/.local/share/teku
.
data-validator-path
- Syntax
- Example
teku slashing-protection repair --data-validator-path=<PATH>
teku slashing-protection repair --data-validator-path=/home/me/me_validator
Path to validator client data. The default is <data-path>/validator
where <data-path>
is specified using --data-path
.
The slashing protection data is stored in a slashprotection
directory under the validator client data directory.
network
- Syntax
- Example
teku slashing-protection repair --network=<NETWORK>
teku slashing-protection repair --network=mainnet
Predefined network configuration. Accepts a predefined network name, or file path or URL to a YAML configuration file. The default is mainnet
.
Possible values are:
Network | Chain | Type | Description |
---|---|---|---|
mainnet | Consensus layer | Production | Main network |
minimal | Consensus layer | Test | Used for local testing and development networks |
goerli | Consensus layer | Test | Multi-client testnet |
gnosis | Consensus layer | Production | Network for the Gnosis chain |
sepolia | Consensus layer | Test | Multi-client testnet |
chiado | Consensus layer | Test | Gnosis testnet |
lukso | Consensus layer | Production | Network for the Lukso chain |
Predefined networks can provide defaults such the initial state of the network, bootnodes, and the address of the deposit contract.
slot
- Syntax
- Example
teku slashing-protection repair --slot=<INTEGER>
teku slashing-protection repair --slot=1028
Updates slashing protection files to contain the specified slot as a minimum. The value should be a future slot, or after when the validators stopped performing duties.
This can be automatically calculated for most networks, and is generally not required.
update-all-enabled
- Syntax
- Example
teku slashing-protection repair --update-all-enabled[=<BOOLEAN>]
teku slashing-protection repair --update-all-enabled=false
Enables all slashing protection records to be updated. The default is false
.