I want to fork a running chain to my local environment and use the fork as a testing chain. Similar to how anvil --forkworks, I know one method is to use a snapshot provider to sync with the local chain. However, the chain I want to fork does not provide snapshots. Is there any other way to achieve this?
(post deleted by author)
One approach is exporting the genesis file and then replaying blocks from the current height. It takes longer than using snapshots but gives a functional forked chain for testing.