Skip to content

[NONEVM-4759] [TXM] Add expiration check in broadcastLoop before broadcast#720

Open
patricios-space wants to merge 6 commits intotxm/fix/classify-insufficient-funds-as-fatal-error-in-broadcastWithRetryfrom
txm/fix/dont-broadcast-expired-txs
Open

[NONEVM-4759] [TXM] Add expiration check in broadcastLoop before broadcast#720
patricios-space wants to merge 6 commits intotxm/fix/classify-insufficient-funds-as-fatal-error-in-broadcastWithRetryfrom
txm/fix/dont-broadcast-expired-txs

Conversation

@patricios-space
Copy link
Copy Markdown
Collaborator

@patricios-space patricios-space commented Apr 21, 2026

NONEVM-4759

Depends on #726

Copy link
Copy Markdown
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 a pre-broadcast expiration guard to prevent TXM from attempting to send transactions that have already expired while waiting in the broadcast queue.

Changes:

  • Check tx.Expiration inside broadcastLoop before constructing/signing/broadcasting the message.
  • Emit a warning log and skip broadcasting when a queued transaction is expired.

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

Comment thread pkg/txm/txm.go Outdated
Comment thread pkg/txm/txm.go Outdated
@patricios-space patricios-space force-pushed the txm/fix/dont-broadcast-expired-txs branch from d703bd4 to 4488709 Compare April 27, 2026 17:17
@patricios-space patricios-space changed the base branch from main to txm/fix/classify-insufficient-funds-as-fatal-error-in-broadcastWithRetry April 27, 2026 17:18
@patricios-space patricios-space requested a review from Copilot April 27, 2026 17:18
Copy link
Copy Markdown
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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.


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

Comment thread integration-tests/txm/txm_test.go Outdated
@patricios-space patricios-space requested a review from Copilot April 27, 2026 18:07
Copy link
Copy Markdown
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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.


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

Comment thread integration-tests/txm/txm_test.go Outdated
Comment thread integration-tests/txm/txm_test.go Outdated
Comment thread integration-tests/txm/txm_test.go Outdated
@patricios-space patricios-space marked this pull request as ready for review April 28, 2026 13:39
@patricios-space patricios-space requested a review from a team as a code owner April 28, 2026 13:39
Comment thread pkg/txm/txm.go
Comment on lines -223 to -226
txID := "none"
if tx.ID != nil {
txID = *tx.ID
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Hmm, what was this logic for?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Only for logging none if txID si nil 🤷. I've move id up so I can log it in the filter too

…roadcastWithRetry' into txm/fix/dont-broadcast-expired-txs
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