[Merged by Bors] - Serve Bellatrix preset in BN API #3425
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue Addressed
Resolves #3388
Resolves #2638
Proposed Changes
BellatrixPreset
on/eth/v1/config/spec
by default.--http-spec-fork=altair
(unless there's a Bellatrix fork epoch set).http-disable-legacy-spec
flag is deprecated).Config
and not to log extra fields. This prevents it from having to muck around parsing theConfigAndPreset
fields it doesn't need.Additional Info
This change is backwards-compatible for the VC and the BN, but is marked as a breaking change for the removal of
--http-disable-legacy-spec
.I tried making
Config
asuperstruct
too, but getting the automatic decoding to work was a huge pain and was going to require a lot of hacks, so I gave up in favour of keeping the default-based approach we have now.