-
Notifications
You must be signed in to change notification settings - Fork 998
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
Proper EL hashes in from_syncing_to_invalid
test
#3172
Comments
Thanks @sauliusgrigaitis! The case is: for our test target, we need different block hashes for the different fork chains. we used to hardcode the block hashes with some distinct values. However, the hardcode values were removed in #3126 in the latest release. Two solutions:
I will try (2) tomorrow. /cc @djrtwo, this is a should-fix of the next spec release. |
It's not expected but it is valid. Two blocks with different CL contents (e.g. different attestations) could be created for the same slot (thus same EL timestamp), same parent, and same TX/etc EL contents So this is valid behavior for the underlying EL chain after the merge, and should be tested explicitly. Maybe it shouldn't show up in a bunch of places accidentally but it should be in our test suite |
Same hash may happen with two different CL contents but in this case I think the execution validity would be the same, not different as in these tests |
Yes, I meant that under normal conditions same payload should not get it's status changed from |
BTW, the test now as it is doesn't make much sense for me. The previous version was very clear - it had a chain with #33-#36 blocks with However, now I really don't understand what this new test tries to test. The new test doesn't expect the same re-org as the previous version. |
Got it, I misunderstood that these had different validity responses |
Looks like the new version solved this issue, thanks! |
As discussed with @hwwhww on Discord there seems to be a problem related to PR #3126. The new test uses the same
block_hash
for different branches, particularly0x376f20f22f880c3be5a8c360f8ff86941e6aa5fac3b5de7825d2efee3f70e891
,0x2e0f73c5b1489715b161e0c11af557c8ac758c3b99aed6744bbbbe73687beb38
,0x6c59e0eb4b2de1a922c639c12f6a0528c672f69d388bff4f7dbbad261ab12bee
. This should not happen under normal behavior. The previous test version used differentblock_hash
es. We found this by updating Grandine, but other clients may not be affected as they may be ignoringblock_hash
(at least Prysm according to @potuz).The text was updated successfully, but these errors were encountered: