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

void test_rewindToBlock(int number) #9

Closed
winsvega opened this issue Mar 2, 2018 · 3 comments
Closed

void test_rewindToBlock(int number) #9

winsvega opened this issue Mar 2, 2018 · 3 comments

Comments

@winsvega
Copy link
Collaborator

winsvega commented Mar 2, 2018

void test_rewindToBlock(int number)

This test method should revert the state of the blockchain to a specific block number.
Basically cancelling the blocks so there would be no need to reset the chain genesis if we want to apply different transactions on top of the same genesis block.

@gumb0
Copy link
Member

gumb0 commented Apr 25, 2018

Is this needed just for performance optimization?

@winsvega
Copy link
Collaborator Author

yes. so not to restart client with new chain params.
Casey says geth already has geth has a debug_setHead method, which would be the same as test_rewindToBlock

@winsvega
Copy link
Collaborator Author

winsvega commented Sep 1, 2019

@winsvega winsvega closed this as completed Sep 1, 2019
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

3 participants
@gumb0 @winsvega and others