Skip to content

Update Sepolia AncientBarriers to 1450409 per EIP-3675 for pre-merge PoW history expiry#8829

Closed
Copilot wants to merge 3 commits into
masterfrom
copilot/fix-5a6a2729-5e94-4551-8290-f7606f9a95cc
Closed

Update Sepolia AncientBarriers to 1450409 per EIP-3675 for pre-merge PoW history expiry#8829
Copilot wants to merge 3 commits into
masterfrom
copilot/fix-5a6a2729-5e94-4551-8290-f7606f9a95cc

Conversation

Copilot AI commented Jun 22, 2025

Copy link
Copy Markdown
Contributor

Summary

Updates Sepolia's AncientReceiptsBarrier and AncientBodiesBarrier from 1450408 to 1450409 to properly expire all pre-merge PoW block history including the terminal PoW block, as per EIP-3675.

Fixes #8629

Background

The current Sepolia configuration keeps the terminal PoW block (1450408) by setting barriers to 1450408. However, barriers define the "first block kept", not the "last block pruned". To expire all PoW block history including the terminal block, the barriers should be set to the first PoS block (1450409).

Changes

  • sepolia.json: Updated AncientReceiptsBarrier and AncientBodiesBarrier from 14504081450409
  • ConfigFilesTests.cs: Updated test expectation to match the new barrier value
  • sepolia_archive.json: Intentionally left unchanged as requested

EIP-3675 Reference

Per EIP-3675:

  • Terminal PoW block: Block 1450408 (last PoW block that satisfies terminal total difficulty)
  • Transition block: Block 1450409 (first PoS block)

This change ensures complete PoW history pruning up to and including the terminal PoW block 1450408, retaining only the PoS transition block 1450409 and onwards.

Testing

  • ✅ JSON configuration validation passes
  • ✅ Build verification successful
  • ✅ Configuration test updated to match new expected value
  • ✅ Confirmed no unintended changes to other config files

Warning

Firewall rules blocked me from connecting to one or more addresses

I tried to connect to the following addresses, but was blocked by firewall rules:

  • 3.134.214.169
    • Triggering command: /home/REDACTED/.dotnet/dotnet exec /home/REDACTED/work/nethermind/nethermind/src/Nethermind/artifacts/bin/Nethermind.Runner.Test/debug/Nethermind.Runner.Test.dll --internal-msbuild-node /tmp/cdbcba88841a4443911ef5eb6d84ca31/.p (packet block)
  • 3.146.117.118
    • Triggering command: /home/REDACTED/.dotnet/dotnet exec /home/REDACTED/work/nethermind/nethermind/src/Nethermind/artifacts/bin/Nethermind.Runner.Test/debug/Nethermind.Runner.Test.dll --internal-msbuild-node /tmp/cdbcba88841a4443911ef5eb6d84ca31/.p (packet block)
  • 3.146.213.65
    • Triggering command: /home/REDACTED/.dotnet/dotnet exec /home/REDACTED/work/nethermind/nethermind/src/Nethermind/artifacts/bin/Nethermind.Runner.Test/debug/Nethermind.Runner.Test.dll --internal-msbuild-node /tmp/cdbcba88841a4443911ef5eb6d84ca31/.p (packet block)
  • 34.65.173.88
    • Triggering command: /home/REDACTED/.dotnet/dotnet exec /home/REDACTED/work/nethermind/nethermind/src/Nethermind/artifacts/bin/Nethermind.Runner.Test/debug/Nethermind.Runner.Test.dll --internal-msbuild-node /tmp/cdbcba88841a4443911ef5eb6d84ca31/.p (packet block)
  • 34.65.205.244
    • Triggering command: /home/REDACTED/.dotnet/dotnet exec /home/REDACTED/work/nethermind/nethermind/src/Nethermind/artifacts/bin/Nethermind.Runner.Test/debug/Nethermind.Runner.Test.dll --internal-msbuild-node /tmp/cdbcba88841a4443911ef5eb6d84ca31/.p (packet block)
  • 65.108.70.101
    • Triggering command: /home/REDACTED/.dotnet/dotnet exec /home/REDACTED/work/nethermind/nethermind/src/Nethermind/artifacts/bin/Nethermind.Runner.Test/debug/Nethermind.Runner.Test.dll --internal-msbuild-node /tmp/cdbcba88841a4443911ef5eb6d84ca31/.p (packet block)

If you need me to access, download, or install something from one of these locations, you can either:


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…PoW history expiry

Co-authored-by: MarekM25 <9356351+MarekM25@users.noreply.github.com>
Copilot AI changed the title [WIP] Expire pre-merge PoW history in Sepolia by updating AncientReceiptsBarrier and AncientBodiesBarrier to 1450409 (sepolia.json only) Update Sepolia AncientBarriers to 1450409 per EIP-3675 for pre-merge PoW history expiry Jun 22, 2025
Copilot AI requested a review from MarekM25 June 22, 2025 21:24

@MarekM25 MarekM25 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right, we need to fix mainnet as well

@benaadams benaadams requested a review from Copilot June 22, 2025 23:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request updates the Sepolia configuration to properly expire pre-merge PoW block history by setting the barriers to 1450409 as required by EIP-3675.

  • Updated barrier values in sepolia.json for AncientReceiptsBarrier and AncientBodiesBarrier.
  • Adjusted the test expectation in ConfigFilesTests.cs to align with the configuration update.
  • Left sepolia_archive.json unchanged per the requirements.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/Nethermind/Nethermind.Runner/configs/sepolia.json Updated barrier values for expiring PoW history.
src/Nethermind/Nethermind.Runner.Test/ConfigFilesTests.cs Updated test expectations to match new barrier values.

@MarekM25

Copy link
Copy Markdown
Contributor

Closed in favour of #8835

@MarekM25 MarekM25 closed this Jun 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sepolia: Pre-merge expiry prunes terminal PoW block

3 participants