Skip to content
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 attestation schedule log with total attester count #8013

Merged
merged 10 commits into from
Dec 4, 2020

Conversation

terencechain
Copy link
Member

@terencechain terencechain commented Dec 1, 2020

What type of PR is this?

Feature

What does this PR do? Why is it needed?

Attestation schedule log was confusing. Instead of "attesters":$SLOT_COUNT, this PR changes it to "attesters":$SLOT_COUNT/$TOTAL_COUNT

cc: @emansipater

@terencechain terencechain self-assigned this Dec 1, 2020
@terencechain terencechain added the Ready For Review A pull request ready for code review label Dec 1, 2020
log.WithField("slot", slotOffset+i).WithField("attesters", len(attesterKeys[i])).WithField("pubKeys", attesterKeys[i]).Info("Attestation schedule")
log.WithFields(logrus.Fields{
"slot": slotOffset + i,
"attesters": strconv.FormatInt(int64(len(attesterKeys[i])), 10) + "/" + total,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not fmt? seems simpler

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree. Thanks!

@prylabs-bulldozer prylabs-bulldozer bot merged commit 3ce9670 into develop Dec 4, 2020
@delete-merged-branch delete-merged-branch bot deleted the better-attested-log branch December 4, 2020 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants