Skip to content

fix(alloy): add nonce filler cache controls#3634

Open
mattsse wants to merge 6 commits intomainfrom
codex/reset-nonce-key-filler
Open

fix(alloy): add nonce filler cache controls#3634
mattsse wants to merge 6 commits intomainfrom
codex/reset-nonce-key-filler

Conversation

@mattsse
Copy link
Copy Markdown
Contributor

@mattsse mattsse commented Apr 16, 2026

Adds NonceKeyFiller::clear() so callers can drop all tracked (address, nonce_key) pairs and force the next fill to refetch nonces from the chain.

Also adds cache controls via with_caching_enabled(false), set_caching_enabled(false), and disable_caching(). When caching is disabled, every fill refetches the nonce from the chain instead of reusing the cached value or incrementing it locally.

Includes focused tests for the cache clear path and the cache-disabled refetch behavior.

@mattsse mattsse requested review from klkvr and onbjerg as code owners April 16, 2026 15:30
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 16, 2026

⚠️ Changelog not found.

A changelog entry is required before merging. We've generated a suggested changelog based on your changes:

Preview
---
tempo-alloy: minor
---

Added configurable nonce caching to `NonceKeyFiller` with methods to enable/disable caching and clear tracked nonce state, allowing forced refetches from the chain.

Add changelog to commit this to your branch.

@mattsse mattsse changed the title fix(alloy): add nonce filler reset helpers fix(alloy): add nonce filler clear helper Apr 16, 2026
@mattsse mattsse changed the title fix(alloy): add nonce filler clear helper fix(alloy): add nonce filler cache controls Apr 16, 2026
@mattsse mattsse enabled auto-merge April 16, 2026 15:48
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.

1 participant