Adding Operators
Add operators to your existing distributed validator cluster using the charon alpha edit add-operators command.
This is an alpha feature and is not yet recommended for production use.
You can add operators to your cluster using the charon alpha edit add-operators command. This operation keeps all distributed validator public keys unchanged whilst adding new operators to the cluster.
Prerequisites
Review the
edit add-operatorscommand CLI reference.For existing operators: Keep the DV node running during the process and ensure you have a copy of the current cluster lock file and validator private key shares.
For new operators: Obtain a copy of the existing cluster lock file from the existing operators and have your Charon ENR private key file ready.
Obtain the Charon ENR addresses of all new operators being added to the cluster.
Adding Operators Process
The examples below demonstrate adding new operators to an existing cluster. All existing operators must run this command, along with the new operators being added.
For Existing Operators
# If you prefer running a pre-built charon binary
charon alpha edit add-operators --new-operator-enrs=enr:-JG4QH... --output-dir=output
# Or, if you prefer running it in Docker
# (replace 'latest' with the most recent version if needed: https://hub.docker.com/r/obolnetwork/charon/tags)
docker run --rm -v "$(pwd):/opt/charon" -w "/opt/charon" obolnetwork/charon:latest alpha edit add-operators --new-operator-enrs=enr:-JG4QH... --output-dir=/opt/charon/outputFor New Operators
New operators being added should run the same command but only need to provide their private key file and the cluster lock file (they won't have validator keys yet):
This command will create a new cluster configuration with the additional operators whilst keeping all validator public keys unchanged. The new configuration will be saved in the output directory.
Making the DV Stack Use the New Configuration
The example below is designed for the CDVN repository, but the process is similar for other setups.
To start using the new configuration (with the added operators), stop the current Charon and validator client instances:
Back up and remove the existing
.charondirectory, then move theoutputdirectory to.charon:
Restart the Charon and validator client instances:
Lodestar's boot script (lodestar/run.sh) will automatically import all keys, removing any existing keys and cache. Charon will load the new cluster-lock.json and recognise all validators in the cluster with the updated operator set.
All existing operators must fully shut down their cluster nodes before starting with the new configuration. The old cluster must be completely stopped before the new cluster with the expanded operator set can begin operating. Unlike add-validators, this is not a gradual migration.
It is advisable to shut the cluster down for at least two epochs, to minimise any risk of unintended double signing during the controlled restart.
Current Considerations
The new cluster configuration will not yet be reflected on the Obol Launchpad.
The new cluster configuration will have a new cluster hash, so the observability stack will display new cluster data under a different identifier.
All operators (both existing and new) must participate in the add-operators ceremony for it to complete successfully.
The cluster's threshold value remains unchanged after adding operators because the existing set of operators already possesses enough shares to create full signatures.
Last updated
Was this helpful?

