Skip to content

fix(submit-api): handle MempoolTxTooSlow exceptions and improve retry logic#3337

Merged
mkoura merged 1 commit intomasterfrom
handle_MempoolTxTooSlow_submit_api
Feb 13, 2026
Merged

fix(submit-api): handle MempoolTxTooSlow exceptions and improve retry logic#3337
mkoura merged 1 commit intomasterfrom
handle_MempoolTxTooSlow_submit_api

Conversation

@mkoura
Copy link
Collaborator

@mkoura mkoura commented Feb 13, 2026

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request attempts to improve the retry logic in the submit-api utility by handling ReadTimeout exceptions using contextlib.suppress and adding special handling for MempoolTxTooSlow errors. The changes aim to make transaction submission more resilient by retrying when transactions fail to reach the mempool.

Changes:

  • Added contextlib import for exception suppression
  • Replaced try-except block with contextlib.suppress for ReadTimeout exceptions
  • Added logic to detect and retry MempoolTxTooSlow errors

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mkoura mkoura changed the title fix(submit-api): handle MempoolTxTooSlow exceptions and improve retry… fix(submit-api): handle MempoolTxTooSlow exceptions and improve retry logic Feb 13, 2026
@mkoura mkoura merged commit 1ca0256 into master Feb 13, 2026
9 checks passed
@mkoura mkoura deleted the handle_MempoolTxTooSlow_submit_api branch February 13, 2026 18:46
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