Skip to content

bump max tracer history to support forced transactions#82

Merged
matkt merged 1 commit intoConsensys:mainfrom
garyschulte:feat/bump-max-tracer-hist-for-forced-tx
Apr 14, 2026
Merged

bump max tracer history to support forced transactions#82
matkt merged 1 commit intoConsensys:mainfrom
garyschulte:feat/bump-max-tracer-hist-for-forced-tx

Conversation

@garyschulte
Copy link
Copy Markdown
Collaborator

@garyschulte garyschulte commented Apr 10, 2026

PR Description

Tracer history is a concurrent queue that retains the most recent zk tracers and their corresponding hub state in order to filter bonsai accumulator when building trielogs.

Forced transactions will use this same mechanism to build trielogs, but not against the head worldstate. This PR bumps up the cache size from 3 to 5 to accomodate forced transaction proving.

Fixed Issue(s)

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

  • I thought about adding a changelog entry, and added one if I deemed necessary.

Note

Low Risk
Low risk change that only increases the in-memory tracer FIFO from 3 to 5 entries; potential impact is slightly higher memory retention and different eviction timing.

Overview
Increases zk tracer retention depth. Bumps ZkBlockImportTracerProvider.MAX_TRACER_HISTORY_SIZE from 3 to 5, keeping more recent tracer/header tuples before FIFO eviction to support workflows (e.g., forced transactions) that need older tracers when building trielogs.

Reviewed by Cursor Bugbot for commit b08119b. Bugbot is set up for automated code reviews on this repo. Configure here.

Signed-off-by: garyschulte <garyschulte@gmail.com>
Copy link
Copy Markdown
Collaborator

@matkt matkt left a comment

Choose a reason for hiding this comment

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

LGTM

@matkt matkt merged commit 51b1d9b into Consensys:main Apr 14, 2026
12 checks passed
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.

2 participants