Switching between block header and contract validator selection in Besu

A QBFT transition can move a live Besu network between block header voting and contract-based validator selection. This page covers the decision, the stop, genesis update and restart sequence, and what to verify.

On this page

Switching Besu validator selection on a live network: when and why

A permissioned Besu network sometimes needs to change how its validator set is managed without starting a new chain. The mechanism for that is a QBFT transition: a change to the network's configuration that takes effect at a block height you choose, so existing blocks and history stay intact. The switch covered here moves the network between the two ways Besu's QBFT consensus can select validators. In block header voting, validators are added and removed by votes that validators place in the block headers they propose, and the network tallies those votes against a majority threshold. In contract validator selection, the validator list is held in a smart contract and read by nodes at each block, so membership changes are made by transactions to that contract rather than by block header votes.

Teams usually choose contract selection when the validator set has to follow a documented, auditable process. A governance body, a registry contract or an onchain approval flow can then own membership changes, and the network no longer depends on a quorum of validators casting matching header votes. Teams that want the simplest operating model, with no contract to deploy, secure and monitor, often stay with voting, which needs no extra contract. Before committing, confirm the option you need in the release you run, since Besu has removed several older features in recent releases, and check the Besu permissioning and QBFT documentation for the exact transition fields. Also confirm who in your consortium can authorize a change to the validator method, because every node must be updated consistently.

This page covers only this one switch: the stop, genesis update and restart sequence. It does not explain how to cast or discard votes, how to deploy and populate a validator contract, or how to recover a stalled network, which are covered in the sibling topics on voting, contract management and quorum recovery. Plan the switch as a coordinated change across all operators. Agree the transition block height, prepare a backup of node data (Besu's Bonsai database auto-upgrades on first start, so a backup is the only rollback path if a later upgrade is needed), and rehearse the change on a non-production copy of the network first.

Switch directions and configuration options compared

This table compares the two switch directions, voting to contract and contract to voting, across the inputs each one needs before the stop, genesis update and restart. Read each row as a preparation item: the reader should confirm every entry for their own network before scheduling the change. The main takeaway is that the contract direction needs a deployed, verified validator contract and storage ready before the activation block, while the return direction depends on a clean validator list in the genesis transition.

Input or decisionVoting to contractContract to voting
Genesis transition entryAdd a transition at the activation block that names the contract validator selection mode and the validator contract addressAdd a transition at the activation block that returns to block header selection and lists the validator addresses for that point
Validator contract addressChoose the address before the switch and confirm the contract is deployed at it on every node's chain dataNot required after the switch, but keep the old address recorded for audit and rollback planning
Contract storage setupPrepare the initial validator list in contract storage and verify it reads correctly before activationConfirm the contract state is no longer the source of truth and document who owns it from then on
Activation blockPick a future block height with enough lead time for all validators to stop and restart on the new genesisPick a future block height with the same lead time and confirm no pending votes will be lost
Existing validators and nodesEvery validator and node must be stopped, updated with the new genesis, and restarted in a coordinated windowSame coordinated restart, plus a check that the validator list in the transition matches the current signing set
Pending votes and proposalsDiscard or finish open voting proposals before the switch, since voting no longer applies after the transitionConfirm the contract proposal state is settled, since voting restarts from the transition list
Best fitNetworks that want validator changes managed by contract logic and access rules rather than block header votesNetworks that want validator changes to go back to on-chain voting, or that cannot keep the contract operated and audited
Preparation before the switchTest on a non-production copy, back up node data, confirm the Besu version supports the mode, and rehearse the restartTest the reverse transition the same way, back up node data and contract state, and confirm the voting operators are available

The stop, genesis update and restart sequence

This sequence moves a live QBFT network from one validator management method to the other through a planned stop, genesis update and restart. Each step ends with a check, so the team knows the nodes agree on the new genesis and the chain keeps producing blocks before the next step begins.

  1. Confirm the Besu version and JDK

    Record the Besu version that every validator and non-validator node runs, and confirm each host has JDK 25, which the Besu 26.6.0 release notes say Besu requires to build and run. Choose a target release from the Besu releases page that all nodes can run during the switch, and keep the software identical across validators so no node is on a different build when the chain stops. Check: every node reports the same Besu version and JDK in a test start, and the target version is written into the change record.

  2. Back up node data before changing anything

    Take a full backup of the data directory on every validator and on any node you may need to roll back, taken while the node is stopped or from a snapshot your team has tested. The Besu 26.10.0 release notes state that the Bonsai database auto-upgrades on first start and that older versions cannot open an upgraded database, so if the target release changes the database format, this backup is the only rollback path. Check: restore one backup to a scratch host, confirm it starts, and confirm it syncs to the same head block as the live chain.

  3. Agree on the activation block

    Choose a future block number for the transition with every operator in the consortium, leaving time for each organization to prepare its genesis file and confirm its validator is ready. Record the block number, the new validator selection method, the validator list or selection contract details, and the named owner of each validator. Check: every operator confirms the same activation block number in writing, and the agreed number is still ahead of the current chain head on every node.

  4. Prepare the updated genesis on every node

    Write the genesis file with the transition entry for the new validator selection method, following the QBFT configuration in the Besu private network documentation, and keep every other field identical to the running chain. If the change moves to contract-based selection, confirm the validator contract and its storage are present in the genesis allocation before the activation block. Distribute the file through your normal change process so each node holds identical content. Check: compare the file checksum on every node, and confirm the file loads on a test node running the target Besu version.

  5. Stop validators in the planned order

    Stop validators one at a time in the order the operators agreed, and keep the remaining online validators above the quorum threshold for your validator count at every stage. Watch block production between stops and record the last block each stopped validator signed. Stop the chain only in the window your change record allows, and keep the activation block ahead of the stopped nodes. Check: after each stop, block production continues or pauses as expected, and the last signed block for each node is logged.

  6. Restart validators with the new genesis

    Start each validator with the updated genesis file on the target Besu version, beginning with the node the operators agreed to start first, then the rest in the same planned order. Confirm each node loads the new genesis and reconnects to its peers before you start the next one. Keep non-validator nodes running on the same genesis so they can follow the chain. Check: each node logs the same genesis hash as the others, and the peer count returns to the level you recorded before the stop.

  7. Confirm blocks and the validator set

    Watch for new blocks past the activation block, then query the validator set at the activation block and at the latest block, and compare the result with the list approved in the agreement step. Check the logs of every node for invalid block header errors, repeated round changes, or rejected blocks. The step is complete when blocks arrive at the expected interval, the validator set matches the approved list, and no node reports a rejected block. If any check fails, stop and follow your rollback plan using the backups from step two.

  8. Record the change and keep backups

    Close the change record with the activation block number, the genesis checksum, the Besu version, and the validator list, and keep the pre-change backups until the network has run steadily through the observation period your consortium agreed. Update monitoring, runbooks, and validator documentation so the new selection method is the reference for future validator changes. Check: a second operator reviews the record, confirms it matches what was done on each node, and signs off the runbook update.

Preparing the validator contract before the switch

Before a transition to contract selection is proposed, two things must exist: a deployed validator selection contract and a validator list stored in it that the network can read. Confirm that the contract address is the one you will place in genesis, that the contract is deployed on the same chain, and that its state is verified on the network before any transition is planned. Read the list through a call from nodes your team operates, not from the team that deployed the contract, and record the returned addresses together with the block number they were read at. Confirm the exact read function and contract interface in the Besu documentation for your release, since the contract must expose what the client expects.

The contract content must match the intended validator set because nodes take their signer set from the contract once selection is active. Whatever it holds at that point becomes the set that signs blocks. A mistyped address, a missing validator, or a key left over from a rehearsal will produce a network that starts with the wrong signers or with reduced fault tolerance. Illustrative example: if one of seven planned validators is recorded under a wrong address, only six valid signers remain, which narrows the margin before the network loses quorum. Compare the stored list address by address against your validator inventory, check the count, and keep a sign-off record from each consortium member that operates a validator.

Once contract selection is active, the voting-based JSON-RPC proposals used on block header networks no longer apply, so the contract becomes the only place the validator set changes. Decide before activation who can update the contract, how those updates are authorized and recorded, and how you would correct a wrong list if one were found after the switch. Check the Besu private network documentation for the procedure your release documents, and confirm what happens to any votes still pending at the moment of activation so that no proposal is left in an ambiguous state.

Security risks during a validator source change

Switching validator selection changes which contract or block header data decides who can produce blocks, so the same people and controls that protect the network must cover the change window. The cards below cover contract control, node key handling, JSON-RPC exposure and genesis consistency, which are the places a change most often goes wrong.

Who controls the validator contract

With contract-based selection, the validator set is whatever the selection contract returns, so whoever can change that contract or its owner keys can change who produces blocks. Before the switch, confirm in writing which accounts own the contract, who holds the keys for those accounts, and how an owner change is approved. Treat the owner key as a production signing key for consensus, not as an ordinary deployer account.

Permissioning docs

Unencrypted node private key file

Besu's documentation states that the local node private key file is not encrypted. Anyone with read access to the data directory can copy the node identity used on the validator network. Confirm file permissions, backup handling and who can access the host before the switch. Where hardware-backed storage is required, the Besu HSM plugin can be loaded with the --security-module option, and you should test that plugin in a non-production network first.

Node keys docs

JSON-RPC access during the change

The change process often involves more RPC calls, extra scripts and operators working from new hosts, which widens the surface exposed to the JSON-RPC API. Besu supports a username and password credentials file or JWTs validated against a public key, but it does not terminate HTTPS natively. Confirm which authentication method each operator uses, which interfaces are bound, and that a TLS-terminating proxy protects any remote access.

Authentication docs

Mismatched genesis splitting nodes

If some nodes restart with the new genesis and others keep the old one, the network can split into groups that reject each other's blocks. Before the restart, compare the genesis file hash on every validator and every node that serves transactions, and keep a record of the file that was approved. Confirm that no node is started from a stale copy restored from backup or a configuration template.

Change approval and audit trail

A validator source change alters consensus authority, so it should follow the same approval path as other production changes. Record who proposed the new genesis, who reviewed it, who ran each node restart and when. Ask your team to confirm how logs from the change window are retained and who can read them, since these records are the evidence you will need during a later compliance review.

Questions teams ask before switching Besu validator selection

How long does switching Besu validator selection take?

The switch itself is a short, planned window, but total elapsed time depends on how much preparation, testing and coordination surrounds it. The main drivers are the number of validator and nodes that must be stopped, restarted and updated with the new genesis, whether every operator is available in the same change window, and how many rehearsals you run on a test network first. Organizations with several consortium members usually spend more time agreeing on the timing than on the technical steps. Ask any partner to give you the step count, the rehearsal plan and the rollback checkpoints in writing before committing to a date.

Can our own team switch validator selection without outside help?

Yes, if your engineers have operated Besu nodes, can read and edit genesis files, and have a documented procedure they have rehearsed. The switch depends on a coordinated stop, genesis update and restart across all validators, so the harder part is usually process discipline rather than a single command. Teams without recent QBFT experience, or without a test network that mirrors production, often benefit from an external review of the plan before the change window. DeployOpen can plan, implement and document this work inside your infrastructure, and the scope and deliverables are agreed in writing before work begins.

What does the switch need from our team in access and change windows?

The switch needs administrative access to every validator and any node that serves your applications, the ability to stop and restart each process in a planned order, and a change window that all operators can attend. You also need custody of the validator node keys and a clear record of which key belongs to which validator before you start. Confirm with each consortium member who approves changes, who holds the keys, and how they will verify the new validator set after restart. Missing key records or an unavailable operator are common reasons a planned switch gets postponed.

What does the switch cost, and what drives that cost?

Cost depends on the scope of the work, the number of nodes and organizations involved, and how much testing you require before the production change. Planning, genesis review, a test network rehearsal, the production change window and post-switch verification each add effort, and some of that effort is one-time while monitoring and validator upkeep recur. A quote should break these items out, state which nodes and environments are covered, name who performs each step, and list what you must supply, such as access and staff time. DeployOpen does not publish a price list, so ask for a quote built from a written scope.

How do we roll back if the contract validator activation fails?

Plan the rollback before the switch, because the safest point to return is the state you captured before any genesis change was applied. Keep a copy of the original genesis file, the node configuration, and a backup of node data taken while the network is stopped. If activation fails, operators stop the nodes, restore the previous genesis and configuration, and restart in the agreed order, then confirm that block production resumes with the expected validator set. Test this rollback on a rehearsal network, because a rollback that has never been run tends to fail under pressure. Confirm the exact steps for your Besu version with the Besu documentation before you rely on them.

What should we verify after the switch to confirm the network is healthy?

Verify that the expected validators are producing and signing blocks, that all nodes agree on the same chain head, and that the validator set reads as intended from the contract. Check logs for round changes or rejected blocks, and confirm that every node started with a genesis that matches the chain. Watch signer participation over a block range so you can spot a validator that stops proposing before it affects quorum. Write these checks into the change plan so the go or no-go decision is based on observable evidence rather than the restart alone.

Does switching validator selection change our compliance position?

A validator selection change alters how the network decides who may produce blocks, so it should be recorded as a controlled change with approvals, evidence and a rollback plan. Your compliance and risk teams will want the change request, the approved genesis, the test results and the post-switch verification logs. DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports or certifications, and independent auditors or certification bodies make those determinations. Confirm with your own assessors which evidence they expect before the change window.

Phases of the validator source switch

The switch starts with pre-checks and a full backup, because the Besu database may auto-upgrade on first start and older versions cannot open it. Next, the genesis and transition file are prepared so every node agrees on the new validator source. Validators are then stopped and restarted in a set order, and the network activates the change at the transition block. The last step is verification, with a rollback path that depends on the backup taken at the start.

Phases of a QBFT validator source switch, from backup to verification or rollback.

How DeployOpen scopes and delivers a validator source switch

DeployOpen approaches a switch between block header and contract validator selection as a planned change to a live permissioned network, not a configuration tweak. The work starts with a written scope that fixes the current validator source, the target method, the node fleet and the rollback path before any genesis file is edited.

How we scope

  • Inventory every validator, bootnode and RPC node, with its Besu version, data directory and genesis file hash.
  • Confirm which direction applies: voting to contract selection, or contract back to block header, and who signs off each step.
  • Agree in writing the maintenance window, rollback point, backup scope and which parties must be reachable during the restart.

How we build

  • Prepare the new genesis configuration and the contract storage setup in a staging network that mirrors the production validator set.
  • Rehearse the stop, genesis update and restart sequence in staging and record the exact commands and config keys used.
  • Verify block production, validator set reads and peer connectivity after each node restarts, and retest the sequence before production.

How we hand over

  • Deliver a runbook covering each node's genesis change, restart order, verification checks and the rollback procedure.
  • Document the validator management method now in force, including which JSON-RPC voting calls no longer apply after the switch.
  • Walk operators through the monitoring and log checks they will use to confirm the network is healthy after the change.

How we support

  • Support is available as a retainer for upgrades, Besu release changes and later validator set adjustments.
  • Keep the runbook and genesis records current as validators are added, replaced or moved to new infrastructure.
  • Retest the procedure when the Besu version, consensus settings or operator roster changes, before the next planned change.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.