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(relayer): unprofitable queue + use txmgr #16505

Merged
merged 14 commits into from
Mar 26, 2024
Merged

Conversation

cyberhorsey
Copy link
Contributor

@cyberhorsey cyberhorsey commented Mar 23, 2024

This PR introduces a new queue for unprofitable messages, and updates our tx sender to use the same on as the new taiko-client.

It is likely on Mainnet, we will have messages that are unprofitable to process. We don't want to discard these messages, nor do we want to process them and lose money. Intead, we should publish them to a queue to "sit and die" for a little bit. A delayed Queue.

Then, when they expire in that queue, they should be re-routed to the original queue via a dead-letter mechanism, to see if they are yet profitable, and enter the normal workflow of message processing again.

It also adds new metrics to track this.

This has been deployed onto our latest internal devnet as well.

@cyberhorsey cyberhorsey marked this pull request as draft March 23, 2024 02:09
Copy link

vercel bot commented Mar 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
blobs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 25, 2024 5:58pm

@cyberhorsey cyberhorsey requested review from dantaik, davidtaikocha, xiaodino and RogerLamTd and removed request for dantaik March 25, 2024 17:57
@cyberhorsey cyberhorsey marked this pull request as ready for review March 25, 2024 17:57
@cyberhorsey cyberhorsey changed the title feat(relayer): unprofitable queue feat(relayer): unprofitable queue + use txmgr Mar 25, 2024
@cyberhorsey cyberhorsey added this pull request to the merge queue Mar 26, 2024
Merged via the queue into main with commit a2aa89b Mar 26, 2024
11 checks passed
@cyberhorsey cyberhorsey deleted the unprofitable_queue branch March 26, 2024 04:36
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.

4 participants