Skip to content

Optimize state rollback performance #31829

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

Open
rjl493456442 opened this issue May 15, 2025 · 1 comment
Open

Optimize state rollback performance #31829

rjl493456442 opened this issue May 15, 2025 · 1 comment

Comments

@rjl493456442
Copy link
Member

Geth provides an RPC endpoint to rewind the chain head: debug.setHead().

However, the entire procedure is highly inefficient, it takes around 500ms to revert a single block on my machine. Notably, the actual state execution accounts for only ~20ms of that time.

This RPC should be optimized for providing a better UX.

@nadtech-hub
Copy link

I could work on it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants