Add support for fulu fork epoch and bpo schedule (#15975)

* wip

* fixing tests

* adding script to update workspace for eth clients

* updating test sepc to 1.6.0 and fixing broadcaster test

* fix specrefs

* more ethspecify fixes

* still trying to fix ethspecify

* fixing attestation tests

* fixing sha for consensus specs

* removing script for now until i have something more standard

* fixing more p2p tests

* fixing discovery tests

* attempting to fix discovery test flakeyness

* attempting to fix port binding issue

* more attempts to fix flakey tests

* Revert "more attempts to fix flakey tests"

This reverts commit 25e8183703.

* Revert "attempting to fix port binding issue"

This reverts commit 583df8000d.

* Revert "attempting to fix discovery test flakeyness"

This reverts commit 3c76525870.

* Revert "fixing discovery tests"

This reverts commit 8c701bf3b9.

* Revert "fixing more p2p tests"

This reverts commit 140d5db203.

* Revert "fixing attestation tests"

This reverts commit 26ded244cb.

* fixing attestation tests

* fixing more p2p tests

* fixing discovery tests

* attempting to fix discovery test flakeyness

* attempting to fix port binding issue

* more attempts to fix flakey tests

* changelog

* fixing import

* adding some missing dependencies, but  TestService_BroadcastAttestationWithDiscoveryAttempts is still failing

* attempting to fix test

* reverting test as it migrated to other pr

* reverting test

* fixing test from merge

* Fix `TestService_BroadcastAttestationWithDiscoveryAttempts`.

* Fix again `TestService_Start_OnlyStartsOnce`.

* fixing TestListenForNewNodes

* removing manual set of fulu epoch

* missed a few

* fixing subnet test

* Update beacon-chain/rpc/eth/config/handlers_test.go

Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>

* removing a few more missed spots of reverting fulu epoch setting

* updating test name based on feedback

* fixing rest apis, they actually need the setting of the epoch due to the guard

---------

Co-authored-by: Manu NALEPA <enalepa@offchainlabs.com>
Co-authored-by: Preston Van Loon <pvanloon@offchainlabs.com>
This commit is contained in:
james-prysm
2025-11-05 14:41:36 -08:00
committed by GitHub
parent 8ad547c969
commit 8b6f187b15
13 changed files with 446 additions and 67 deletions

View File

@@ -130,10 +130,10 @@ func TestNextForkData(t *testing.T) {
wantedEpoch: cfg.BellatrixForkEpoch,
},
{
name: "after last bpo - should be far future epoch and 0x00000000",
name: "post last full fork, fulu bpo 1",
currEpoch: params.LastForkEpoch() + 1,
wantedForkVersion: [4]byte(cfg.ElectraForkVersion),
wantedEpoch: cfg.ElectraForkEpoch,
wantedForkVersion: [4]byte(cfg.FuluForkVersion),
wantedEpoch: cfg.BlobSchedule[0].Epoch,
},
}
for _, tt := range tests {

View File

@@ -30,7 +30,7 @@ const (
// Electra Fork Epoch for mainnet config
mainnetElectraForkEpoch = 364032 // May 7, 2025, 10:05:11 UTC
// Fulu Fork Epoch for mainnet config
mainnetFuluForkEpoch = math.MaxUint64 // Far future / to be defined
mainnetFuluForkEpoch = 411392 // December 3, 2025, 09:49:11pm UTC
)
var mainnetNetworkConfig = &NetworkConfig{
@@ -338,7 +338,16 @@ var mainnetBeaconConfig = &BeaconChainConfig{
SubnetsPerNode: 2,
NodeIdBits: 256,
BlobSchedule: []BlobScheduleEntry{},
BlobSchedule: []BlobScheduleEntry{
{
Epoch: 412672, // December 9, 2025, 02:21:11pm UTC
MaxBlobsPerBlock: 15,
},
{
Epoch: 419072, // January 7, 2026, 01:01:11am UTC
MaxBlobsPerBlock: 21,
},
},
}
// MainnetTestConfig provides a version of the mainnet config that has a different name