You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(testing): delete dead fork machinery (leanEthereum#851)
With a single fork, most of the fork scaffolding had zero callers:
- the fork's state accessor was never called anywhere
- the ignore flag machinery (class keyword, classvar, accessor) was
always False; no fork ever opted out
- the valid_from and valid_at markers were registered and filtered
but no test uses them; only valid_until exists in the tree
- three of the four ordering operators existed solely for those
unused markers
Changes:
- the registry class with its module dir() scan is replaced by a
literal name-to-fork dict in the consensus forks package;
lookups stay case-insensitive
- the fork base keeps name, repr, and the older-or-equal comparison
that the valid_until marker consumes; the rest of the ordering
algebra and the ignore machinery are gone
- the marker check in the filler handles only valid_until
- the unused fork type alias and metaclass re-exports are dropped
When a second fork lands, the removed pieces can be reintroduced
against real usage.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments