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

Add periodic tx broadcaster #103

Open
mattsse opened this issue Nov 27, 2024 · 0 comments · May be fixed by #107
Open

Add periodic tx broadcaster #103

mattsse opened this issue Nov 27, 2024 · 0 comments · May be fixed by #107

Comments

@mattsse
Copy link
Member

mattsse commented Nov 27, 2024

the wallent endpoint submits sponsored transaction into the pool that are then broadcasted to the sequencer over p2p.

p2p broadcasting can potentially be flaky, and due to the p2p rules, some txs may never make it to the sequencer, this can happen if a message is dropped internally when channel bounds are enforced for example.

what we can do is periodically rebroadcast these txs to the peers.

this can be done with a helper service that has access to the pool + TransactionHandle and on an interval basis fetches the pooled txs for a given address and then force gossips them:

https://github.com/paradigmxyz/reth/blob/3b8c661ad4e7e7a5b1656d5bebe8073755903b75/crates/net/network/src/transactions/mod.rs#L143-L143

@joshieDo joshieDo linked a pull request Nov 28, 2024 that will close this issue
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 a pull request may close this issue.

1 participant