-
Notifications
You must be signed in to change notification settings - Fork 779
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
Update ethereum-tests submodule to 8.0.0 / Remove EIP-2315 from berlin #1142
Conversation
Note that this PR is also running with the |
Codecov Report
Flags with carried forward coverage won't be shown. Click here to find out more. |
66a4608
to
03d00fd
Compare
Some tests failing, feel very free to directly push here. Will stop for now. |
Have given this a quick glance, this is probably the problem. But I don't have time today to actually check it. |
… list of supported opcodes
This should fix the problem. Have also moved EIP2315 tests from @holgerd77 as for why your tests passed locally: you probably forgot to rebuild Common, so if you would create a Berlin common it automatically activates EIP2315. |
@jochem-brouwer lol, good point 😄 (yes, you're right) |
@jochem-brouwer we can now also include the Berlin HF blocks here along since this is now settled. Do you might want to directly do, don't want to push here in between? |
Ah right, good point, will add them here and push. |
@jochem-brouwer cool! 👍 Have also cross-checked the EIP-2315 implementation, I think we've all covered now. |
Right, I don't have the fork hashes, and sadly we also don't have an utility module to generate these fork hashes (do we want this?). I have asked on R&D if someone has the hashes for me. |
@jochem-brouwer ah, you are not reading my messages 😋 - also wrote about this in the Yolov3 PR - you can use the Common._calcForkHash() method for that. |
(so put in the block numbers and then run with a Common set to |
Ah I missed this message, just figured this out as well that we actually have this feature 😅 |
Found a possible problem: we do not pad the fork hashes, which is why for instance this kovan hash is of 7 characters (9 characters with 0x prefixed). This is problematic if we do I don't know if this is an issue, but it is not consistent with other packages, we usually left pad these strings or Buffers. Anyways, have added Berlin blocks to Common, see the EF blog for block numbers. Also got the fork hashes from Geth's fork hash tests. And I also learned we can actually calculate these hashes 😅 |
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.
Ok, double-checked the numbers, LGTM
This is a simple PR which updates the
ethereum-tests
submodule to theBerlin
release 8.0.0 with a removedEIP-2315
HF.EIP-2315
is also removed here inCommon
in theberlin
HF definition file.I originally also wanted to add the block numbers for
berlin
along this PR. But I don't trust these numbers yet since theRopsten
HF would be so close and there is no correspondinggo-ethereum
release out yet, see also ethereum/pm#248 (comment).