Skip to main content

7.1 Slasher Configuration

Running a slasher service helps monitor and report malicious validator behavior, contributing to the overall health and security of the network. This guide explains how to enable or disable the slasher for regular nodes and validators.

tip

Further details can be found on the Slashing and Panelties and Slasher Service pages in the 🧠 Theory section.

info

The following steps are performed on your 📟 node server.

1. Stop Node Operation​

Depending on your setup method, there are different ways to stop your node before applying updates.

cd <lukso-working-directory>
lukso stop
info

Exchange <lukso-working-directory> with the path of the node folder.

Force Client Shutdown
sudo pkill geth

2. Configure Slasher Service​

If you are running a validator node using the LUKSO CLI setup, the slasher is activated by default to increase watchers for malicious events during network downtimes of bigger services. For regular nodes or custom setups, the slasher service is disabled.

If you are runnning on lower end hardware or prefer to safe disk space, you can disable it. Regular nodes can use the similar process to activate the additional service without participating in the consensus.

tip

The Teku and Nimbus-Eth2 clients do not have separate slasher services that create a database and keep track of the historical misbehaviours. Instead, they only come with validator precautions such as slashing-protection or doppelganger-detection that check against their own keys before committing validator duties.

Depending on your setup method, there are different ways to start your staking node without the slasher service.

cd <lukso-working-directory>

# Start Mainnet Validator without Slasher
lukso start --validator --transaction-fee-recipient "<your-fee-recipient-address>" --checkpoint-sync -no-slasher

# Start Testnet Validator without Slasher
lukso start --testnet --validator --transaction-fee-recipient "<your-fee-recipient-address>" --checkpoint-sync -no-slasher
info

The following properties need to be exchanged:

  • <lukso-working-directory> with the path of the node folder
  • <your-fee-recipient-address> with the wallet address receiving staking profits

After the clients were started, verify that their services are still up.

sudo lukso status

4. Remove Slasher Data​

If you previously ran a slasher service, you can delete the unused database from your node directory and free storage space.

cd <lukso-working-directory>

# Remove Slasher Database for Mainnet Node
rm -rf /mainnet-data/consensus/beaconchaindata/slasher.db

# Remove Slasher Database for Testnet Node
rm -rf /testnet-data/consensus/beaconchaindata/slasher.db
info

Exchange <lukso-working-directory> with the path to the node folder.

🎨 DAppNode​

On a DAppNode setup, the Prysm client can be adjusted from the user interface.

1. Stop Node Operation: Stop the execution and consensus client within the Node Operation View.

2. Navigate to Staker Menu: Open the LUKSO Stakers menu and move into the Lukso Prysm Package.

3. Adjust Slasher Value: Navigate to the Configs window and add the slasher flag in the EXTRA_OPTS field.

--no-slasher

4. Restart the Node: Restart the execution and consensus client within the Node Operation View.