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(optimism): optimism support through new feature flag #194

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

refcell
Copy link

@refcell refcell commented Nov 10, 2023

Description

Adds support for optimism types in revm and reth with the addition of an optimism feature flag.

Copy link
Owner

@ralexstokes ralexstokes left a comment

Choose a reason for hiding this comment

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

looks nice, would want to hear more about optimism and pbs

@@ -63,14 +63,14 @@ fn assemble_txs_from_pool<Pool: reth_transaction_pool::TransactionPool>(
let effective_gas_limit = block_gas_limit - context.build.gas_reserve;
while let Some(pool_tx) = best_txs.next() {
if context.is_cancelled() {
return Ok(())
return Ok(());
Copy link
Owner

Choose a reason for hiding this comment

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

I think this is from using stable rustfmt, when this repo has a config file using nightly fmt

@@ -274,6 +274,8 @@ impl<'a> ExecutionContext<'a> {
success: result.is_success(),
cumulative_gas_used: self.cumulative_gas_used,
logs: result.logs().into_iter().map(into_reth_log).collect(),
#[cfg(feature = "optimism")]
deposit_nonce: None,
Copy link
Owner

Choose a reason for hiding this comment

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

very interested in supporting the optimism use case, although I don't know enough about their eco to say what is needed here and what the demand for PBS is

can you point me to resources expounding on these points?

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.

2 participants