Skip to content
You are reading the Teku development version documentation and some features may not be available in the stable release. You can switch to the stable version using the version box at the bottom of the screen.

Updated on November 3, 2020

slashing-protection

Manage the local slashing protection data used by the validator. To use the slashing-protection subcommand run:

teku slashing-protection [subcommand] [option]

You can also supply the subcommand options using environment variables or a configuration file.

import

Imports the slashing protection database. Supports the Minimal or Complete interchange format.

config-file

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

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

data-path

teku slashing-protection import --data-path=<PATH>
teku slashing-protection import --data-path=/home/me/me_node

The 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.

from

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 Minimal format.

config-file

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

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

data-path

teku slashing-protection export --data-path=<PATH>
teku slashing-protection export --data-path=/home/me/me_node

The 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.

to

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 Minimal format.

Questions or feedback? You can discuss issues and obtain free support on Teku Discord channel.
For paid professional support by Consensys, contact us at quorum@consensys.net