ValidatorExitHelper is a program that facilitates the exit of Ethereum Validators from the blockchain network. It supports selecting the number of Validators to exit or choosing all, ensuring a safe exit process with confirmation before execution of irreversible commands. The program also logs important information such as Public Key and URL for future verification.
- Facilitate the safe exit of multiple Validators at once.
- Reduce human error by confirming actions before executing irreversible commands.
- Log essential information like Public Key and URL for verifying Validator status after exiting.
- Only supports exiting Validators with
enabled: true
status. - Allows selecting a specific number of Validators to exit, or exit all Validators.
- Verifies the success of the
lighthouse account validator exit
command and retries if the command fails. - Logs Public Key and URL to
exited_validators_log.txt
. - Displays important warnings during the process.
This program requires Python 3.7 or later and the PyYAML
library:
sudo apt update
sudo apt install python3 python3-pip -y
pip install pyyaml
To download the program files, run the following command to clone the repository:
git clone https://github.com/AM-979/ValidatorExitHelper.git && cd ValidatorExitHelper
Before using ValidatorExitHelper, you will need to configure the following settings in the ValidatorExitHelper.py
script:
-
File Path for YAML Configuration
- The script expects a YAML configuration file containing the list of validators you want to exit.
- You need to define the correct path to this YAML file.
To configure it, modify the line in
ValidatorExitHelper.py
:file_path = "validator_definitions.yml"
Replace
"validator_definitions.yml"
with the actual path to your YAML configuration file. EX.PATH : /home/USER/.lighthouse/custom/validators/ -
Set the Testnet Directory
- The script also requires a
testnet_dir
for the configuration files.
Modify the line in
ValidatorExitHelper.py
:TESTNET_DIR = "/path/to/your/testnet/config"
Replace
"/path/to/your/testnet/config"
with the actual path to your testnet configuration directory. Download from here : https://github.com/jibchain-net/node - The script also requires a
Once you have updated these settings, you can proceed to use the script.
The validator_definitions.yml
file must be in the same directory as the program and have the following structure:
- enabled: true
voting_public_key: 0x...
voting_keystore_path: /path/to/keystore.json
voting_keystore_password: 'password'
To start the program, run the following command:
python3 ValidatorExitHelper.py
- Enter the number of Validators to exit.
- Confirm the action by typing yes or no.
After completion, the Public Key and URL of the exited Validators will be logged in exited_validators_log.txt
:
Public Key: 0x123...
URL: https://dora.jibchain.net/validator/0x123...
- The
lighthouse account validator exit
command cannot be undone. - Keep your Lighthouse Validator running until all coins have been returned to your Wallet.
If you find this program helpful and would like to support it, donations are appreciated via:
- BTC Native SegWit:
bc1qlpy59lmup27ylrffe7kg2sp9wj0zfka8q8j9dz
- ERC20/BEP20/JIBChain:
0xba2eab518482c75789a262ce3e4ded6941c36370
Developer
AM979 | xpool.pw