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
make txmgr aware of the txpool.ErrAlreadyReserved condition #9683
make txmgr aware of the txpool.ErrAlreadyReserved condition #9683
Conversation
421b2ff
to
f1dfcd1
Compare
f1dfcd1
to
ee4fd74
Compare
Warning Rate Limit Exceeded@roberto-bayardo has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 22 minutes and 56 seconds before requesting another review. How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. WalkthroughThe changes enhance the transaction manager ( Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
80fec72
to
53c390c
Compare
53c390c
to
53a1359
Compare
53a1359
to
9760b48
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ✨
ee21678
Description
With the introduction of blob transactions, the geth transaction pool will allow either a blob tx or a regular tx in the pool from a single account at any given time, but not both. This PR extends the txmgr so that it knows when it's trying to submit a transaction of incompatible type with some other pending transaction. Under this situation, it will immediately return ErrAlreadyReserved to the caller of Send(), making it the responsibility of the caller to determine how to best handle the stuck transaction.
Tests
Added unit test to confirm the AlreadyReserved error gets passed to the caller.
Additional context
Metadata