Skip to content

feat(net): Update Fork Filter At Runtime - #18

Closed
refcell wants to merge 1 commit into
backport/v2.5.1/mainfrom
rf/feat/network-runtime-fork-filter
Closed

feat(net): Update Fork Filter At Runtime#18
refcell wants to merge 1 commit into
backport/v2.5.1/mainfrom
rf/feat/network-runtime-fork-filter

Conversation

@refcell

@refcell refcell commented Aug 27, 2026

Copy link
Copy Markdown

Summary

Adds a set_fork_filter method to the NetworkSyncUpdater trait and NetworkHandle, letting a running node replace its active ForkFilter without a restart. The network manager routes the new SetForkFilter handle message through the session manager, which swaps in the new filter and re-derives the advertised ForkId so future handshakes announce the updated fork identity. This lets a node adopt a fork schedule that changes at runtime (e.g. an L1-signalled upgrade) and stay aligned with the rules it now enforces instead of advertising a stale fork id and getting partitioned. The trait method defaults to a no-op so updaters that do not track a fork filter are unaffected.

CI note

The failing clippy, docs, and deny checks are pre-existing on the base branch and unrelated to this change. This PR modifies only 4 source files and adds no dependencies; those files are clippy- and docs-clean. The clippy failures are nightly-toolchain churn in untouched files (needless_range_loop in test_utils/testnet.rs, needless_bool in transactions/fetcher.rs), and deny reports pre-existing dependency advisories.

Co-Authored-By: Claude <noreply@anthropic.com>
@refcell refcell added the enhancement New feature or request label Aug 27, 2026
@refcell refcell self-assigned this Aug 27, 2026
@refcell

refcell commented Aug 27, 2026

Copy link
Copy Markdown
Author

Superseded by the automated reth-prepare-release flow. paradigmxyz#26794 is now squashed into the base-v2.5.1.2 fork tag on backport/v2.5.1/main, and base/base is pinned to it in base/base#4740. Closing this manual backport as redundant.

@refcell refcell closed this Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant