go-ethereum icon indicating copy to clipboard operation
go-ethereum copied to clipboard

Optimize state rollback performance

Open rjl493456442 opened this issue 6 months ago • 1 comments

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.

rjl493456442 avatar May 15 '25 05:05 rjl493456442

I could work on it

nadtech-hub avatar May 15 '25 17:05 nadtech-hub