Skip to content

fix(anvil): separate queued txs in txpool RPC responses#14425

Merged
figtracer merged 1 commit intofoundry-rs:masterfrom
mk0walsk:fix-anvil-txpool-queued-buckets
Apr 23, 2026
Merged

fix(anvil): separate queued txs in txpool RPC responses#14425
figtracer merged 1 commit intofoundry-rs:masterfrom
mk0walsk:fix-anvil-txpool-queued-buckets

Conversation

@mk0walsk
Copy link
Copy Markdown
Contributor

Motivation

txpool_inspect and txpool_content currently insert queued transactions into the pending bucket. This makes their output inconsistent with txpool_status and misreports nonce-gapped transactions to RPC consumers.

Solution

Write queued transactions into the queued bucket for both RPC methods and add a regression test that builds a nonce gap and asserts pending/queued separation across txpool_status, txpool_inspect, and txpool_content.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

Copy link
Copy Markdown
Collaborator

@figtracer figtracer left a comment

Choose a reason for hiding this comment

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

makes sense

Copy link
Copy Markdown
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

ah yes, this is correct, naming is terrible here

@figtracer figtracer enabled auto-merge (squash) April 23, 2026 12:20
@figtracer figtracer merged commit 85b3e39 into foundry-rs:master Apr 23, 2026
16 checks passed
@github-project-automation github-project-automation Bot moved this to Done in Foundry Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants