Skip to content

Commit

Permalink
Fix p2p to use eip7732 (ethereum#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
terencechain authored and potuz committed Jul 8, 2024
1 parent a5d2161 commit 614284c
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions specs/_features/eip7732/builder.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ePBS -- Honest Builder
# EIP-7732 -- Honest Builder

This is an accompanying document which describes the expected actions of a "builder" participating in the Ethereum proof-of-stake protocol.

Expand All @@ -16,7 +16,7 @@ This is an accompanying document which describes the expected actions of a "buil

## Introduction

With the ePBS Fork, the protocol includes new staked participants of the protocol called *Builders*. While Builders are a subset of the validator set, they have extra attributions that are optional. Validators may opt to not be builders and as such we collect the set of guidelines for those validators that want to act as builders in this document.
With the EIP-7732 Fork, the protocol includes new staked participants of the protocol called *Builders*. While Builders are a subset of the validator set, they have extra attributions that are optional. Validators may opt to not be builders and as such we collect the set of guidelines for those validators that want to act as builders in this document.

## Builders attributions

Expand Down
4 changes: 2 additions & 2 deletions specs/_features/eip7732/fork-choice.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ePBS -- Fork Choice
# EIP-7732 -- Fork Choice

## Table of contents
<!-- TOC -->
Expand Down Expand Up @@ -38,7 +38,7 @@

## Introduction

This is the modification of the fork choice accompanying the ePBS upgrade.
This is the modification of the fork choice accompanying the EIP-7732 upgrade.

## Constants

Expand Down
4 changes: 2 additions & 2 deletions specs/_features/eip7732/fork.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ePBS -- Fork Logic
# EIP-7732 -- Fork Logic

**Notice**: This document is a work-in-progress for researchers and implementers.

Expand Down Expand Up @@ -68,7 +68,7 @@ For now, we assume the condition will be triggered at epoch `EIP7732_FORK_EPOCH`
### Upgrading the state

If `state.slot % SLOTS_PER_EPOCH == 0` and `compute_epoch_at_slot(state.slot) == EIP7732_FORK_EPOCH`,
an irregular state change is made to upgrade to ePBS.
an irregular state change is made to upgrade to EIP-7732.

```python
def upgrade_to_eip7732(pre: electra.BeaconState) -> BeaconState:
Expand Down
12 changes: 6 additions & 6 deletions specs/_features/eip7732/p2p-interface.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ePBS -- Networking
# EIP-7732 -- Networking

This document contains the consensus-layer networking specification for ePBS.
This document contains the consensus-layer networking specification for EIP7732.

<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
Expand Down Expand Up @@ -184,7 +184,7 @@ The following validations MUST pass before forwarding the `signed_execution_payl
| `BELLATRIX_FORK_VERSION` | `bellatrix.SignedBeaconBlock` |
| `CAPELLA_FORK_VERSION` | `capella.SignedBeaconBlock` |
| `DENEB_FORK_VERSION` | `deneb.SignedBeaconBlock` |
| `EIP7732_FORK_VERSION` | `epbs.SignedBeaconBlock` |
| `EIP7732_FORK_VERSION` | `eip7732.SignedBeaconBlock` |

##### BeaconBlocksByRoot v3

Expand All @@ -201,7 +201,7 @@ Per `context = compute_fork_digest(fork_version, genesis_validators_root)`:
| `BELLATRIX_FORK_VERSION` | `bellatrix.SignedBeaconBlock` |
| `CAPELLA_FORK_VERSION` | `capella.SignedBeaconBlock` |
| `DENEB_FORK_VERSION` | `deneb.SignedBeaconBlock` |
| `EIP7732_FORK_VERSION` | `epbs.SignedBeaconBlock` |
| `EIP7732_FORK_VERSION` | `eip7732.SignedBeaconBlock` |


##### BlobSidecarsByRoot v2
Expand All @@ -213,7 +213,7 @@ Per `context = compute_fork_digest(fork_version, genesis_validators_root)`:
| `fork_version` | Chunk SSZ type |
|--------------------------|-------------------------------|
| `DENEB_FORK_VERSION` | `deneb.BlobSidecar` |
| `EIP7732_FORK_VERSION` | `epbs.BlobSidecar` |
| `EIP7732_FORK_VERSION` | `eip7732.BlobSidecar` |


##### ExecutionPayloadEnvelopeByRoot v1
Expand All @@ -226,7 +226,7 @@ The `<context-bytes>` field is calculated as `context = compute_fork_digest(fork

| `fork_version` | Chunk SSZ type |
|---------------------|---------------------------------------|
| `EIP7732_FORK_VERSION` | `epbs.SignedExecutionPayloadEnvelope` |
| `EIP7732_FORK_VERSION` | `eip7732.SignedExecutionPayloadEnvelope` |

Request Content:

Expand Down
4 changes: 2 additions & 2 deletions specs/_features/eip7732/validator.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ePBS -- Honest Validator
# EIP-7732 -- Honest Validator

This document represents the changes and additions to the Honest validator guide included in the ePBS fork.
This document represents the changes and additions to the Honest validator guide included in the EIP-7732 fork.

<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
Expand Down

0 comments on commit 614284c

Please sign in to comment.