---
eip: 7848
label: EIP-7848
title: On-chain upgrade signaling
status: Draft
type: Standards Track
category: Core
created: 2024-12-22
official: https://eips.ethereum.org/EIPS/eip-7848
source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-7848.md
canonical: https://eips.huatuo.xyz/eip-7848/
lang: en
tldr: Proposes that blocks carry a hash of the reference implementation their producer runs, and that a network upgrade activates only if enough blocks in a voting window signal the new version.
tags: [governance, hard-fork, upgrades, signaling, core]
---

# EIP-7848: On-chain upgrade signaling

> Allows participants to indicate readiness for a client upgrade when producing blocks

**TL;DR:** Proposes that blocks carry a hash of the reference implementation their producer runs, and that a network upgrade activates only if enough blocks in a voting window signal the new version.

## What problem does it solve?

Ethereum network upgrades are coordinated off-chain: EIPs are discussed on All Core Devs calls, client teams ship releases with a fork block or timestamp built in, and the upgrade is announced on the ethereum.org blog. Node operators and validators "vote" only by installing (or not installing) the new release, and there is no on-chain measure of readiness before the fork happens.

EIP-7848 proposes to make readiness visible and binding on-chain: an upgrade turns on only if enough block producers show they are running software that implements it.

## How it works

- **Reference implementation hash.** Each upgrade proposal points to a published, feature-complete reference implementation. Its identifier is the SHA-256 hash of the tarred source code.
- **New header field.** Clients add `referenceImplementationHash` to the block header, right after `extraData`. A block producer that supports an upgrade runs the new software, and its blocks carry the new hash.
- **Voting parameters** written into the upgrade:
  - `VOTING_WINDOW_BEGIN` / `VOTING_WINDOW_END`: the block range in which votes count, which must span more than 14,400 blocks (about two days);
  - `REFERENCE_IMPLEMENTATION_HASH`: the hash being voted for;
  - `REQUIRED_APPROVALS`: more than 50 % of blocks in the window, with 95 % or more recommended.
- **Activation.** When block `VOTING_WINDOW_END` is produced, the upgrade is activated if at least `REQUIRED_APPROVALS` blocks in the window carried the hash. From `VOTING_WINDOW_END + 1` on, the new rules apply; otherwise the old ones stay. Each chain branch counts votes among its own ancestors.

New software must behave exactly like the old rules until activation, so running it early is harmless.

## Sample code

Counting votes at the end of the window (pseudocode, Python syntax):

```python
def upgrade_activated(chain, upgrade) -> bool:
    votes = 0
    for n in range(upgrade.VOTING_WINDOW_BEGIN, upgrade.VOTING_WINDOW_END + 1):
        header = chain.ancestor_header(n)   # same branch as the block being built
        if header.referenceImplementationHash == upgrade.REFERENCE_IMPLEMENTATION_HASH:
            votes += 1
    return votes >= upgrade.REQUIRED_APPROVALS

def rules_for(block_number, chain, upgrade):
    if block_number > upgrade.VOTING_WINDOW_END and upgrade_activated(chain, upgrade):
        return NEW_RULES
    return OLD_RULES
```

Producing the hash a client would advertise:

```bash
tar -cf ref-impl.tar ./reference-implementation
sha256sum ref-impl.tar
```

## Things to know

- Status is **Draft**. Ethereum does not use on-chain upgrade signaling today; upgrades are still scheduled by client releases with a fixed activation time (for example [Pectra](/eip-7600/)).
- Signaling by block producers measures validator support only, not that of users, node operators or applications. Any threshold below 100 % leaves non-upgraded validators on the losing side, as the spec itself notes.
- Hashing "tarred source code" is not deterministic unless the archive format is pinned (file order, timestamps, permissions), and different clients implement the same rules with different code, so mapping each client to one reference hash is an open problem.
- Competing or overlapping upgrades could each reach their threshold, and a very long window delays later upgrades.
- [EIP-2124](/eip-2124/) fork IDs let nodes tell which fork a peer is on, but do not signal readiness before an upgrade.


---

This is an unofficial plain-language summary. Read the full specification: https://eips.ethereum.org/EIPS/eip-7848
