Skip to main content
Version: 23.9.1

slashing-protection

Manage the local slashing protection data used by the validator.

import

Imports the slashing protection database using the validator client interchange format.

caution

Before running the import, you must stop the validator and confirm the process has fully exited and won't be restarted.

config-file

teku slashing-protection import --config-file=<FILE>

Path to the YAML configuration file. The default is none.

data-path

teku slashing-protection import --data-path=<PATH>

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

teku slashing-protection import --data-validator-path=<PATH>

Path to the validator client data. The default is <data-path>/validator where <data-path> is specified using --data-path.

info

Teku imports slashing protection data into a slashprotection directory under the validator client data directory.

from

teku slashing-protection import --from=<FILE>

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

teku slashing-protection export --config-file=<FILE>

Path to the YAML configuration file. The default is none.

data-path

teku slashing-protection export --data-path=<PATH>

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

teku slashing-protection export --data-validator-path=<PATH>

Path to the validator client data. The default is <data-path>/validator where <data-path> is specified using --data-path.

info

Teku exports slashing protection data from the slashprotection directory under the validator client data directory.

to

teku slashing-protection export --to=<FILE>

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

teku slashing-protection repair --checking-only-enabled[=<BOOLEAN>]

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

teku slashing-protection repair --config-file=<FILE>

Path to the YAML configuration file. The default is none.

data-path

teku slashing-protection repair --data-path=<PATH>

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

teku slashing-protection repair --data-validator-path=<PATH>

Path to validator client data. The default is <data-path>/validator where <data-path> is specified using --data-path.

info

The slashing protection data is stored in a slashprotection directory under the validator client data directory.

network

teku slashing-protection repair --network=<NETWORK>

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:

NetworkChainTypeDescription
mainnetConsensus layerProductionMain network
minimalConsensus layerTestUsed for local testing and development networks
goerliConsensus layerTestMulti-client testnet
gnosisConsensus layerProductionNetwork for the Gnosis chain
holeskyConsensus layerTestMulti-client testnet
sepoliaConsensus layerTestMulti-client testnet
chiadoConsensus layerTestGnosis testnet
luksoConsensus layerProductionNetwork 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

teku slashing-protection repair --slot=<INTEGER>

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.

note

This can be automatically calculated for most networks, and is generally not required.

update-all-enabled

teku slashing-protection repair --update-all-enabled[=<BOOLEAN>]

Enables all slashing protection records to be updated. The default is false.