Skip to content

fix: prevent relayer from blocking indefinitely on dropped transactions#585

Merged
liu-zhipeng merged 1 commit intomainnet-prodfrom
fix/blocked-relayer
Mar 16, 2026
Merged

fix: prevent relayer from blocking indefinitely on dropped transactions#585
liu-zhipeng merged 1 commit intomainnet-prodfrom
fix/blocked-relayer

Conversation

@otsybizov
Copy link
Contributor

🤖 Linear

Closes CONG-XXX

Copilot AI review requested due to automatic review settings March 16, 2026 20:24
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

Adds timeout and retry limits to prevent the relayer's transaction dispatch from blocking indefinitely when transactions are dropped or fail to mine.

Changes:

  • Adds a MAX_MINE_ATTEMPTS (10) limit to break out of the mine loop if a transaction never confirms
  • Adds a SEND_TIMEOUT (10 minutes) to the send polling loop to prevent indefinite blocking
  • Minor formatting/whitespace cleanups

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

@liu-zhipeng liu-zhipeng merged commit f0b3281 into mainnet-prod Mar 16, 2026
25 checks passed
@liu-zhipeng liu-zhipeng deleted the fix/blocked-relayer branch March 16, 2026 20:35
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.

3 participants