Replace an Operator

Replace an operator in your existing distributed validator cluster using the charon alpha edit replace-operator command.

You can replace an operator in your cluster using the charon alpha edit replace-operator command. This operation keeps all validators intact whilst swapping one operator for another in the cluster.

Prerequisites

  1. Review the edit replace-operator command CLI reference.

  2. For continuing 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.

  3. For the new operator: Obtain a copy of the existing cluster lock file from the continuing operators and have your Charon ENR private key file ready.

  4. For the old operator being replaced: The operator being replaced should NOT participate in the ceremony.

  5. Identify the Charon ENR address of the operator you wish to replace and have the new operator's ENR ready.

The ceremony uses a different p2p relay from your running cluster to avoid conflicts. The default relay address is already configured differently, so no special action is required.

Understanding the Replacement Process

The replace-operator ceremony performs a one-for-one swap:

  • The old operator is completely removed from the cluster and does not participate in the ceremony

  • The new operator takes over at the same index position as the old operator

  • All continuing operators must participate with their existing validator keys

  • All validator public keys remain unchanged

This is different from remove-operators followed by add-operators, as it maintains the cluster size and threshold in a single atomic operation.

Replacing an Operator

All continuing operators and the new operator must run this command. The old operator being replaced should NOT run the command.

For Continuing Operators

For the New Operator

The new operator being added should run the same command but only needs to provide their private key file and the cluster lock file (they won't have validator keys yet):

For the Old Operator Being Replaced

The old operator should not participate in the ceremony. Simply do not run the command.

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.

For Continuing Operators and New Operator

  1. Stop the current Charon and validator client instances:

  1. Back up and remove the existing .charon directory, then move the output directory to .charon:

  1. Restart the Charon and validator client instances:

For the Old Operator Being Replaced

The operator who has been replaced can safely shut down their node after the ceremony completes:

Current Limitations

  • The new cluster configuration will not be reflected on the 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 continuing operators must have valid validator keys to participate in the replacement ceremony.

  • The cluster's threshold value remains unchanged after replacing an operator.

  • The new operator's ENR must not already exist in the cluster.

  • The old operator's ENR must exist in the current cluster.

Last updated

Was this helpful?