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

Nice #1

Open
sambacha opened this issue Oct 9, 2022 · 1 comment
Open

Nice #1

sambacha opened this issue Oct 9, 2022 · 1 comment

Comments

@sambacha
Copy link

sambacha commented Oct 9, 2022

nice work ser, here is some alt. implementation for your reference

https://github.com/manifoldfinance/bundle-simulator/tree/feat-blockreplay/block-replay
https://github.com/bernard-wagner/hardhat-stream-blocks/

There is also this:
https://github.com/sebasgoldberg/hardhat-events-cache
https://github.com/sebasgoldberg/hardhat-mongodb

I am wondering now if I can backfill a cache and have it accessed by hardhat, wdyt?

cheers mate, will be checking this out!

@zemse
Copy link
Owner

zemse commented Oct 10, 2022

hey man, thanks for checking!

Even im wondering how would the node state be saved and later resume there (e.g. if the node has to be restarted for some reason). Maybe that involves hacking with the ForkStateManager.

Otherwise I don't see a way to do that through a simple plugin, maybe with dumpState and loadState similar to anvil could be help but mainfork would contain a lot of state.

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

No branches or pull requests

2 participants