Skip to content

fix(mempool): allow CheckTx retries (backport #5802) - #5831

Closed
mergify[bot] wants to merge 1 commit into
v0.39.xfrom
mergify/bp/v0.39.x/pr-5802
Closed

mergify[bot] wants to merge 1 commit into
v0.39.xfrom
mergify/bp/v0.39.x/pr-5802

Conversation

@mergify

@mergify mergify Bot commented May 4, 2026

Copy link
Copy Markdown
Contributor

Fixed a UX hiccup: RPC.BroadcastTxSync() calls appMempool.CheckTx() that limited retries. With Krakatoa's mempool that meant you couldn't resubmit a cosmos tx if your balance was low, for example.

This PR drops the tx hash from the "seen cache" after a delay, letting you resubmit while still protecting the node from DoS.

Closes STACK-2402


PR checklist

  • Tests written/updated
  • Changelog entry added in CHANGELOG.md
  • Updated relevant documentation (docs/ or spec/) and code comments

This is an automatic backport of pull request #5802 done by [Mergify](https://mergify.com).

Fixed a UX hiccup: `RPC.BroadcastTxSync()` calls `appMempool.CheckTx()`
that limited retries. With Krakatoa's mempool that meant you couldn't
resubmit a cosmos tx if your balance was low, for example.

This PR drops the tx hash from the "seen cache" after a delay, letting
you resubmit while still protecting the node from DoS.

Closes STACK-2402

---

#### PR checklist

- [x] Tests written/updated
- [ ] Changelog entry added in `CHANGELOG.md`
- [ ] Updated relevant documentation (`docs/` or `spec/`) and code
comments

---------

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
(cherry picked from commit b523a65)

# Conflicts:
#	CHANGELOG.md
@mergify

mergify Bot commented May 4, 2026

Copy link
Copy Markdown
Contributor Author

Cherry-pick of b523a65 has failed:

On branch mergify/bp/v0.39.x/pr-5802
Your branch is up to date with 'origin/v0.39.x'.

You are currently cherry-picking commit b523a65f.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	modified:   config/config.go
	modified:   config/toml.go
	new file:   internal/guard/guard.go
	new file:   internal/guard/guard_test.go
	modified:   mempool/app_mempool.go
	modified:   mempool/app_mempool_test.go

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   CHANGELOG.md

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

@mergify mergify Bot added the conflicts label May 4, 2026
@linear

linear Bot commented May 4, 2026

Copy link
Copy Markdown

@greptile-apps

greptile-apps Bot commented May 4, 2026

Copy link
Copy Markdown
Contributor

PR author is not in the allowed authors list.

@github-actions

github-actions Bot commented May 4, 2026

Copy link
Copy Markdown

🔒 WARNING: unsigned commits detected

This pull request contains 1 commit(s) without a verified signature.

How to fix:

  1. Set up commit signing (GPG or SSH).
  2. Amend/rebase so every commit in this PR is verified-signed.
  3. Push the updated branch and open a new PR, or ask a maintainer to reopen once fixed.

Docs: https://docs.github.com/authentication/managing-commit-signature-verification

Unsigned commits:

@mergify mergify Bot mentioned this pull request May 4, 2026
1 of 3 tasks
@mattac21 mattac21 closed this May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants