Merged
Conversation
- WriteTo - IsZero
- Source tests from op-geth
- Would always result in validation errors
- Base and Optimism
Member
LukaszRozmej
left a comment
There was a problem hiding this comment.
I still don't like the hidden dependency and side effect with BaseFeeCalculator.
I would change exceptions handling.
src/Nethermind/Nethermind.Optimism/OptimismBaseFeeCalculator.cs
Outdated
Show resolved
Hide resolved
| var spec = _specProvider.GetSpec(currentBestBlock.Header); | ||
| if (spec.IsOpHoloceneEnabled) | ||
| { | ||
| EIP1559Parameters eip1559Parameters = optimismPayload.DecodeEIP1559Parameters(); |
Member
There was a problem hiding this comment.
This could fail and throw exception
Contributor
Author
There was a problem hiding this comment.
I think that at that point we've already validated the attributes so there should not be a risk of exceptions (unless I'm missing something):
- We validate attributes in
- Then we use the
IPreparationServiceinStartBuildingPayload
- Eventually,
OptimismPayloadPreparationService.ImproveBlockis called:
emlautarom1
commented
Nov 20, 2024
| } | ||
| } | ||
|
|
||
| public static class BaseFeeCalculator |
Contributor
Author
There was a problem hiding this comment.
I think we could remove this static class altogether by leveraging extension methods but for now I'll leave it as it is to avoid more diffs.
LukaszRozmej
approved these changes
Nov 20, 2024
src/Nethermind/Nethermind.Optimism/Rpc/OptimismPayloadAttributes.cs
Outdated
Show resolved
Hide resolved
kamilchodola
added a commit
that referenced
this pull request
Nov 22, 2024
This reverts commit cc96168.
kamilchodola
added a commit
that referenced
this pull request
Nov 22, 2024
16 tasks
barnabasbusa
added a commit
to ethpandaops/optimism-package
that referenced
this pull request
Dec 2, 2024
Recently we've added support for the upcoming Optimism hard-fork Holocene in Nethermind (NethermindEth/nethermind#7761) and the OP team suggested us to use OP's kurtosis package to test it. We found a couple of issues when trying to set up an enclave due to certain changes to other fork's timestamps which would trigger an error in Nethermind. To fix that, one of our developers (@flcl42) updated the `gen2spec.jq` script which fixes the above mentioned issue. Co-authored-by: Barnabas Busa <barnabas.busa@ethereum.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Resolves #7760
Changes
Types of changes
What types of changes does your code introduce?
Testing
Requires testing
If yes, did you write tests?
Notes on testing
Added tests that cover all new LOCs. Manual testing is still required.
Documentation
Requires documentation update
I don't think it's a requirement to update the docs.
Requires explanation in Release Notes
We should communicate that Nethermind is ready to support the new OP fork.
Remarks
Initially, only Sepolia timestamps are included for both Optimism and Base since those are the only ones currently known at this time.