EIP-7251 · Final · Core · 2023-06-28
EIP-7251: Increase the MAX_EFFECTIVE_BALANCE
Raises the maximum effective balance of a validator from 32 ETH to 2048 ETH while keeping 32 ETH as the minimum, so big operators can consolidate validators and solo stakers get compounding rewards.
What problem does it solve?
Before this change, a validator could count at most 32 ETH of stake (MAX_EFFECTIVE_BALANCE). Anyone staking more had to run many separate 32 ETH validators, each with its own BLS key. Large operators ended up with thousands of "redundant" validators on the same nodes, which bloats the validator set, the number of attestations and signatures processed every epoch, and the size of the beacon state.
The 32 ETH cap was a leftover from an earlier sharding design. Small stakers also lost out: rewards above 32 ETH did not compound, and you needed exactly 64 ETH to run a second validator.
How it works
On the consensus layer:
MIN_ACTIVATION_BALANCEstays at 32 ETH, but the maximum effective balance rises to 2048 ETH (MAX_EFFECTIVE_BALANCE_ELECTRA).- Only validators with the new
0x02"compounding" withdrawal credential use the higher cap. Validators with0x01credentials keep sweeping everything above 32 ETH as before. - Activation and exit churn are rate-limited by stake weight instead of validator count. Deposits go through a
pending_depositsqueue. - Validators can be consolidated in-protocol: a source validator's balance is moved into a target validator without going through the exit and activation queues.
- The initial slashing penalty is made negligible, so a large consolidated validator is not disproportionately punished.
On the execution layer, consolidations are requested through a system contract at 0x0000BBdDc7CE488642fb579F8B00f3a590007251, delivered to the consensus layer as an EIP-7685 request of type 0x02:
- Calldata of exactly 96 bytes (
source_pubkey ‖ target_pubkey, 48 bytes each) adds a request;msg.sendermust match the source validator's withdrawal credential. - Empty calldata returns the current fee, which rises exponentially when more than 1 request per block (the target) is queued. At most 2 requests are dequeued per block.
- Partial withdrawals triggered from the execution layer come from EIP-7002.
Sample code
Requesting a consolidation from a contract, reading the fee first so you do not overpay (adapted from the spec):
address constant CONSOLIDATIONS = 0x0000BBdDc7CE488642fb579F8B00f3a590007251;
function requestConsolidation(bytes calldata srcPubkey, bytes calldata targetPubkey, uint256 maxFee) external {
require(srcPubkey.length == 48 && targetPubkey.length == 48, "bad pubkey");
(bool ok, bytes memory feeData) = CONSOLIDATIONS.staticcall("");
require(ok, "fee read failed");
uint256 fee = uint256(bytes32(feeData));
require(fee <= maxFee, "fee too high");
(bool sent, ) = CONSOLIDATIONS.call{value: fee}(bytes.concat(srcPubkey, targetPubkey));
require(sent, "request failed");
}
Things to know
- Status: Final, activated in the Pectra upgrade (see EIP-7600).
- A request where source and target are the same validator is how an
0x01validator switches to0x02compounding credentials. - Overpaid fees are not refunded. Sending from an EOA always means guessing the fee; simulate first or use a contract like the one above.
- The consolidation queue has a hard limit (262,144 requests); requests beyond it are dropped by the consensus layer and the fee is lost.
- Deposits changed alongside this, via EIP-6110 on-chain deposit processing.