-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Conversation
@@ -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() |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
63c01a4
to
0571be3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool!
Depends on #10934
Relaxes
ProviderChainSpec
bound and only restricts chainspec toEthereumHardforks