Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collect stats related to storage changes #7

Merged
merged 9 commits into from
Aug 12, 2024

Conversation

BrianBland
Copy link
Collaborator

@BrianBland BrianBland commented Aug 9, 2024

This adds a new tracer capability which computes the net storage diffs in each block, by leveraging the debug_traceBlockByHash RPC endpoint. This feature is enabled by setting REPLAYOR_COMPUTE_STORAGE_DIFFS to true

In order to make this compatible with geth's pathdb or other node implementations with shallow history support, this also updates the order of operations such that each block is now analyzed immediately after creation. Performing this trace async could negatively impact block execution time or result in the stats tracer falling too far behind in the case of history expiry. This is especially true for geth, which takes on the order of 5-10 seconds to trace a typical Base block.

Because tracing is now performed in lock-step with block production, this change also removes the chann (unbounded channel) dependency.

@danyalprout danyalprout merged commit 856b241 into danyalprout:main Aug 12, 2024
2 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