-
Notifications
You must be signed in to change notification settings - Fork 74
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
feat(fw): Add is_state_test
flag to Environment
#652
base: main
Are you sure you want to change the base?
Conversation
Requires: ethereum/go-ethereum#30074 |
I like the change however, there are some other quirks around "block processing" in How will this accept state tests themselves? They are currently expected to process system calls, withdrawals and apply the block reward of 0 👿. |
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.
I remember I offered this as a flag to t8n a year ago, but it was rejected.
--statetest
But even better:
--mode=statetest [default blockchain]
Or in env file
transitionMode: "statetest"
IMHO its more of a cmd flag than env option.
The state reward=-1 will be consumed by this option. And existing state tests would be possible to regenerate as a true state transition only. Currently state tests are blockchain tests with reward 0. (Because created by t8n)
Also what happened to state test depreciation idea?
only block reward of 0 as coinbase touch. no withdrawals in state tests. (the state tests currently are blockchain tests with reward 0, 1 block, empty uncles/ withdrawals) |
14a0454
to
cd17649
Compare
I think |
I like this one, maybe Wdyt @chfast ? |
Just to chime in! I'm a fan of having the mode in the env, Would
|
Ah wait. In state tests reward 0. |
I don't care so much about the specific name so you can pick the one you like the best. I have small preference for the env JSON over command line flag. The invocation is already not commnad-line friendly because there are 3 mandatory JSON files to be used. From my point of view the |
🗒️ Description
Adds a flag
isStateTest
into the environment information that is passed to the t8n tool which is only set totrue
when executing the state tests, and should inhibit any block-level operations in order to reduce the changes to the state that are produced by:🔗 Related Issues
None
✅ Checklist
mkdocs serve
locally and verified the auto-generated docs for new tests in the Test Case Reference are correctly formatted.