bsc
bsc copied to clipboard
core/state: simplify statedb copy
Description
core/state: simplify statedb copy
Rationale
tell us why we need these changes...
Example
add an example CLI or API response...
Changes
Notable changes:
- add each change in a bullet point here
- ...
now the statedb has cache now, so copy items in prefetcher is useless
so just remove CopyDoPrefetch, also align more code with go-ethereum
when a prefetcher do a copy, it will stop the origin prefetch so pending this PR for now, until the prefetcher is refactored by next upstream