-
Notifications
You must be signed in to change notification settings - Fork 20.1k
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
cmd/evm: allow state dump regardless if test passes in statetest #28484
Conversation
In theory I agree, and I've been on the verge of making this PR myself, but when I've actually experimented with it, I've noticed that the state dump after a statetest cannot be relied upon. I started digging in that, but then got busy with other tasks. As I recall it,
The
And is invoked with the fresh 'state
However, before we constructed this new state, we did a Commit operation and discarded the nodes, so we never actually stored them to db.
A good start here would be to add some testcases that shows the failure of the current mechanism. Having proper tests here would be great (and making it work would probably not be too hard once we have tests) |
Hm, I might be misremembering. When I was investigating this: ethereum/execution-spec-tests#332 , I noticed the shortcomings. However, that was regarding the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…ereum#28484) This change makes it so that when executing state tess, state is always dumped out if the corresponding flag is set.
…est (ethereum#28484)" This reverts commit d362d8e.
…est (ethereum#28484)" This reverts commit d362d8e.
…ereum#28484) This change makes it so that when executing state tess, state is always dumped out if the corresponding flag is set.
…ereum#28484) This change makes it so that when executing state tess, state is always dumped out if the corresponding flag is set.
This just makes it simpler for other
evm
implementations testing againstgeth
.