-
Notifications
You must be signed in to change notification settings - Fork 319
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
Add initial test cases for EXTCODEHASH #484
Conversation
a447b65
to
4f37d8f
Compare
"gas" : -1, | ||
"value" : -1 | ||
}, | ||
"network" : ["<=Byzantium"], |
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.
no need to test this on all networks. could just leave Byzantium.
"gas" : -1, | ||
"value" : -1 | ||
}, | ||
"network" : ["<=Byzantium"], |
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.
same here. Byzantium is enough
Why |
Yes. It is NoProof blocks meaning that you dont have to check the difficulty |
@winsvega still bad blocks for me |
The way hash is calculated is not touched. |
Taken from first Constantinople test here: Constructing block from fields provided:
Please notice the difference between block header's rlp: block header's rlp (nonce and mixHash omitted): From Ethereum yellow paper: So we have incorrect Where I am wrong? |
The provided RLP is correct as long as rlp syntax is concerned.
|
Side note: I've been on an ewasm sprint. Will try to add a few more test cases next week. |
Hash calculated from full header, |
But nonce and mixHash are provided above in json. You will get another block's rlp from that data |
You mean in the blockheader fields?
|
@winsvega null fields are encoded as |
I think BlockHeader information in json should be removed then. could we just agree that 0x000..00 values of nonce and mixhash means block without signature for now? |
@winsvega I think it's a good idea to exclude redundant RLP serialize/deserialize testing in all tests.
Better to exclude this fields at all, so at least rlp == block in json. But still I will have difficulties to run this tests. I will need to override default hash only for this kind of tests with attention to not break anything in real run. |
No feedback from geth and Parity. they work through hive. another solution might be following. |
created a fix for this issue. require tests refill after the PR get merged. |
@winsvega cool! Thank you! |
Sorry if I'm late to the discussion. I think filling EDIT: Doesn't have to be zeroes, can be anything, for example EDIT2: Just checked the PR, |
I take this PR over |
@winsvega is there any update on this? :) |
this PR covers first 6 cases from this list and the test fillers here could be used as a templates for creating the following test cases from that list. |
WIP
Depends on ethereum/solidity#4676 .