NethermindEth / NethermindEth/juno

Concurrent traceTransaction requests targeting the same preconfirmed transaction repeat VM work

Open
#4,058 0 comments 0 reactions 1 assignee View on GitHub

@danielntmd is already working on this.

Since Sep 9, 2026.

Dominant language
Go
Stars
444
Forks
244
Avg merge
2d 15h
Merged PRs (30d)
78

Description

Description

Without preconfirmed trace caching, each traceTransaction request independently reconstructs the preceding state and executes the target transaction in the VM. Concurrent requests for the same transaction repeat this work, even when its execution context has not changed.

Benefit (The "Why")

Reduce redundant VM executions and state reconstruction, freeing node capacity and improving response times for repeated requests targeting popular preconfirmed transactions.

Acceptance Criteria
  • Concurrent and repeated requests reuse traces while the execution context remains valid.
  • Context changes, including reorgs, invalidate affected traces and prevent stale in-flight results from being reused.
  • Failures permit retries; canceling one waiter does not disrupt other callers.
  • Obsolete cache entries are removed as the chain advances.
  • Tests cover reuse, invalidation, reorgs, cancellation, and retries.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.