-
Notifications
You must be signed in to change notification settings - Fork 11
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
Etcm 8983 fix get block author test #361
Conversation
7f82a2f
to
637d0ed
Compare
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.
Looks much nicer!! Please make sure it covers all corner cases though, epoch boundaries, first validator of an epoch missing, last validator of an epoch missing etc
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.
Unfortunately, without signature verification, you can never be sure if the block was authored by the claimed author. I cannot find that part in the code anymore.
d45ae48
to
793b17b
Compare
@chrispalaskas I've run it for multiple mc epochs, we should be good. @mpskowron the test verifies if block author is in the committee. Extracting block signature was just a way to verify it, but your point is good, we lost that additional check now. @chrispalaskas, since we now have simpler method to get block author, we may utilize it in a new test that would validate if the claimed author really signed a block. Although, that might be slightly excessive... we would be testing aura's round robin essentially. |
Not only aura's round robin but also the signing process and if slots are claimed correctly, etc. Anyway, the solution looks correct. |
fixes: - test_block_authors_match_committee_seats was failing in some cases which wasn't handled properly, e.g. updated DParam or runtime upgrade. Now it's getting the author based on slot number and modulo operation. Refs: ETCM-8983
793b17b
to
2b1ab26
Compare
Description
All in commit msg.
Checklist
changelog.md
for affected crateNote on CI
If your PR is from a fork, the necessary CI jobs won't trigger automatically for security reasons.
You will need to get someone with write privileges. Please contact IOG Partner Chains developers to do this
for you.