Skip to main content

Switch to Prysm

All consensus clients read the same keystores (EIP-2335) and the same slashing protection file (EIP-3076). Switching to Prysm is the same procedure as moving to a new machine: sync the Prysm beacon node, stop the old validator for good, wait at least 2 epochs, then import keys and slashing protection into Prysm.

To leave Prysm for another client, see Switch from Prysm.

You don't need to exit your validators

Switching clients doesn't touch your validators on chain. They keep the same keys, index, and balance, and stay active. They only miss rewards for the few epochs between stopping the old client and starting the new one.

Never run the old and new validator clients with the same keys at the same time. Stop and disable the old one, and prove it's off, before the new one starts.

Operating system
Network

Before you begin​

  • Your keystore files and their password, or your mnemonic to regenerate them.
  • Plan the execution client: one execution client serves one beacon node. Either run a second one while the new beacon node syncs, or move your existing one to the new beacon node (same jwt.hex) and accept the downtime.
  • If both beacon nodes run on the same machine, they need different P2P ports. Prysm uses TCP 13000, UDP 12000, and UDP 13000; most other clients use 9000. See Ports, peers and router setup.

Steps​

  1. Sync the Prysm beacon node with checkpoint sync, without a validator client. Wait until Is my node healthy? shows it synced.

  2. Stop and disable the old validator client, and make sure nothing restarts it.

  3. Export slashing protection from the old client, with its validator client stopped:

    grandine --network mainnet interchange export <SLASHING_PROTECTION_FILE>

    Set <SLASHING_PROTECTION_FILE> to the path of the file to create, for example slashing_protection.json. Use your client's data directory if it isn't the default. Also delete the keys from the old client, or move its keystore folder away, so it has nothing to sign with.

    Refer to your current client's documentation for more information: Grandine, Lighthouse, Lodestar, Nimbus, Teku.

  4. Wait at least 2 epochs (about 13 minutes). A block explorer must show your validators missing attestations since you stopped the old client.

  5. Import slashing protection, then the keys, into Prysm:

    ./prysm.sh validator slashing-protection-history import \
    --datadir=<PRYSM_VALIDATOR_DATADIR> \
    --slashing-protection-json-file=<SLASHING_PROTECTION_FILE>

    ./prysm.sh validator accounts import \
    --keys-dir=<PATH_TO_KEYSTORES> \
    --wallet-dir=<WALLET_DIR>

    <SLASHING_PROTECTION_FILE> is the file you exported in step 3, and <PATH_TO_KEYSTORES> is the folder that holds your keystore files. Use the same --datadir the validator will run with. See Import keys.

  6. Start the Prysm validator with your fee recipient, MEV-Boost settings, and --enable-doppelganger.

Check that it works​

  • The Prysm validator client reports your keys as active and submits attestations within a few epochs (longer with doppelganger protection).
  • A block explorer shows attestations again.
  • Once it has run for a day, remove the old client’s keys, data, and services so it can’t start by accident.