Skip to content

Conversation

yiweichi
Copy link
Member

@yiweichi yiweichi commented Jul 3, 2025

Counterpart of l2geth scroll-tech/go-ethereum#1208.
Related Reth PR: scroll-tech/reth#265

Added a new flags on NetworkArgs.
network.sequencer-url: This will be passed to ScrollEthApiBuilder, If not None, Reth will forward transactions to sequencer's RPC directly.

@yiweichi yiweichi requested review from frisitano and greged93 July 6, 2025 20:02
Copy link
Collaborator

@frisitano frisitano left a comment

Choose a reason for hiding this comment

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

Added comment inline.

Copy link
Collaborator

@frisitano frisitano left a comment

Choose a reason for hiding this comment

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

Can we add an e2e test for this using the test framework. See example provided:

#[tokio::test]
async fn can_sequence_and_gossip_blocks() {

@yiweichi
Copy link
Member Author

yiweichi commented Jul 9, 2025

Can we add an e2e test for this using the test framework. See example provided:

#[tokio::test]
async fn can_sequence_and_gossip_blocks() {

Sure, let me do that.

@frisitano
Copy link
Collaborator

Sure, let me do that.

Thanks, I think you'll need to set no_local_transactions_propagation to true in the node config when launching the test nodes:

https://github.com/scroll-tech/reth/blob/766dd271b0bd71315cef665d1eeb81ab86b891e0/crates/node/core/src/args/txpool.rs#L90-L92

@yiweichi
Copy link
Member Author

Sure, let me do that.

Thanks, I think you'll need to set no_local_transactions_propagation to true in the node config when launching the test nodes:

https://github.com/scroll-tech/reth/blob/766dd271b0bd71315cef665d1eeb81ab86b891e0/crates/node/core/src/args/txpool.rs#L90-L92

During testing, the arg no_local_transactions_propagation does't work well, I think it is a bug on Reth, see the fix commit here. Essentially Reth does't pass no_local_transactions_propagation to TransactionValidationTaskExecutor but just put a default value. Which makes even with arg no_local_transactions_propagation set to true, the node will still propagate transaction.

@yiweichi yiweichi requested a review from frisitano July 25, 2025 15:13
Copy link
Collaborator

@frisitano frisitano left a comment

Choose a reason for hiding this comment

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

Looks good. Left a few minor comments inline. Lets work on getting feat-forward-tx-to-sequencer merged into scroll branch on reth and then we can look to get this merged.

@yiweichi yiweichi requested a review from frisitano July 28, 2025 07:21
@frisitano
Copy link
Collaborator

Please remove branch = "feat-forward-tx-to-sequencer", from Cargo.toml files as we have now merged reth PR into default branch (scroll).

@yiweichi
Copy link
Member Author

Please remove branch = "feat-forward-tx-to-sequencer", from Cargo.toml files as we have now merged reth PR into default branch (scroll).

branch updated.

Copy link
Collaborator

@frisitano frisitano left a comment

Choose a reason for hiding this comment

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

lgtm

@yiweichi yiweichi merged commit 7ae074b into main Jul 28, 2025
12 checks passed
@yiweichi yiweichi deleted the feat-forward-txs-to-sequencer branch July 28, 2025 10:01
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.

3 participants