-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Option to simulate a reorg for a local fork mode #1799
Comments
I think this some hybrid of what should anvil do on a |
Something like this? head block is 1, calling reors(1) would create block 2 with block 1 as an uncle including all TX from block 1 later could even expand it as |
you can do this with the admin commands as well see https://github.com/spalladino/reorg-tester |
@mattsse what do you think? |
ping |
sorry, missed this update,
that should be possible so we need:
I think we can start with 1 block reorg, but how should it behave if we're on block 5 and want to do a 3 block reorg for example? |
maybe to keep things simple can just start by allowing to reorg only the last block and if there is a request for bigger reorgs can revisit again. |
There hasn't been any follow-up on this issue for 22 years. It seems to have been forgotten. |
@mattsse any chance I could take this up? This would be very helpful for a lot of applications imo. |
Component
Anvil
Describe the feature you would like
Add an api to simulate a block reorg for local fork mode
Additional context
When writing tests for bots and libraries It would help to simulate reorgs to see how the library/bot handles it.
The text was updated successfully, but these errors were encountered: