Skip to content

Share transaction via p2p between rbuilders #189

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

SozinM
Copy link
Collaborator

@SozinM SozinM commented Jul 4, 2025

📝 Summary

This PR introduces private transaction propagation.

I've added flags
--builder.transaction-peers - used to specify which peers would receive transactions

Intended usage:
--rollup.disable-tx-pool-gossip = true
--builder.peers = Vec

We should always disable regular txpool gossip, to ensure that if for some reason out custom impl was removed it won't result in transaction leak.
--builder.peers should contain enode for trusted private peers only with disabled tx-pool-gossip. They all should have the same options like specified above.

💡 Motivation and Context


✅ I have completed the following steps:

  • Run make lint
  • Run make test
  • Added tests (if applicable)

@SozinM SozinM changed the title Base for tx policy Share transaction via p2p between rbuilders Jul 4, 2025
@SozinM SozinM marked this pull request as ready for review July 4, 2025 14:34
@SozinM SozinM force-pushed the msozin/transaction-peering branch from 517d77f to 0bd4761 Compare July 9, 2025 09:53
pub rbuilder_peers: Vec<TrustedPeer>,

/// Enables transaction propagation between peers specified in builder.peers
#[arg(long = "builder.disable-txpool-gossip", default_value = "true")]
Copy link
Contributor

Choose a reason for hiding this comment

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

name should be enable? the comment says this enabled the transaction propagation

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

i'm refactoring cli options ATM to make them less confusing

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

simplified

@SozinM SozinM force-pushed the msozin/transaction-peering branch 2 times, most recently from 7c74f59 to 9c3bbb7 Compare August 11, 2025 15:19
@SozinM SozinM force-pushed the msozin/transaction-peering branch from 9c3bbb7 to 736c35a Compare August 11, 2025 15:25
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