-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
fixing electra committee logs #14992
Conversation
logTest "github.com/sirupsen/logrus/hooks/test" | ||
) | ||
|
||
func TestLogSubmittedAtts(t *testing.T) { |
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.
can we have one more testcase here where we'll have more than one committee index as part of committeeIndices
array log?
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.
You can't propose an attestation or aggregate with multiple committee bits because the proposing validator is assigned to only one committee.
validator/client/log_test.go
Outdated
att.CommitteeBits[0] = 44 | ||
att.CommitteeBits[1] = 73 |
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.
This is not how you set bits on a bitlist. This way you are modifying a whole byte at once. You should use the SetBitAt
method. That way you can control exactly which bit is set.
logTest "github.com/sirupsen/logrus/hooks/test" | ||
) | ||
|
||
func TestLogSubmittedAtts(t *testing.T) { |
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.
You can't propose an attestation or aggregate with multiple committee bits because the proposing validator is assigned to only one committee.
* fixing logs * fixing tests * addressing feedback * fixing tests based on feedback
What type of PR is this?
Bug fix
What does this PR do? Why is it needed?
Electra attestation logs have been printing out incorrect indicies

this pr solves the issue by correctly using the committee bits to get the committee index for electra attestation logs
Which issues(s) does this PR fix?
Fixes #
Other notes for review
Acknowledgements