Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: make DatabaseProvider generic over chainspec #10978

Merged
merged 10 commits into from
Sep 19, 2024
Merged

Conversation

klkvr
Copy link
Collaborator

@klkvr klkvr commented Sep 18, 2024

Depends on #10934

Relaxes ProviderChainSpec bound and only restricts chainspec to EthereumHardforks

@@ -462,7 +462,8 @@ where
) -> bool {
// On Optimism, the proposers are allowed to reorg their own chain at will.
#[cfg(feature = "optimism")]
if self.blockchain.chain_spec().is_optimism() {
if reth_chainspec::EthChainSpec::chain(self.blockchain.chain_spec().as_ref()).is_optimism()
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

unsure what's the best way to do this. for now just changed to checks on chain id, but I guess there are cases that we don't cover by this?

Copy link
Member

Choose a reason for hiding this comment

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

We prob should get rid of the feature flag altogether and capture this logic in the OP engine consensus impl?

Base automatically changed from klkvr/reth-stages-db-provider to main September 19, 2024 11:00
Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

cool!

@klkvr klkvr added this pull request to the merge queue Sep 19, 2024
Merged via the queue into main with commit 6cb26f7 Sep 19, 2024
35 checks passed
@klkvr klkvr deleted the klkvr/chainspec-generic branch September 19, 2024 14:36
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.

4 participants