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

Fix Pending Queue For Unaggregated Attestations #7899

Merged
merged 1 commit into from
Nov 22, 2020
Merged

Conversation

nisdas
Copy link
Member

@nisdas nisdas commented Nov 22, 2020

What type of PR is this?

Bug Fix

What does this PR do? Why is it needed?

  • All Unaggregated attestation broadcasts were failing due to the fact that they were wrapped in a signed aggregate and proof container, which was not tolerated by fast-ssz. This lead to all broadcasts failing.
  • PR adds in the correct method to broadcast single attestations through its subnet.
  • Instead of exiting the pending queue, we also log an error and continue on.

Which issues(s) does this PR fix?

Fixes N.A

@nisdas nisdas requested a review from a team as a code owner November 22, 2020 15:25
@nisdas nisdas added Ready For Review A pull request ready for code review release-target labels Nov 22, 2020
// Broadcasting the signed attestation again once a node is able to process it.
if err := s.p2p.Broadcast(ctx, signedAtt); err != nil {
if err := s.p2p.BroadcastAttestation(ctx, helpers.ComputeSubnetForAttestation(valCount, signedAtt.Message.Aggregate), signedAtt.Message.Aggregate); err != nil {
Copy link
Contributor

@shayzluf shayzluf Nov 22, 2020

Choose a reason for hiding this comment

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

if err := s.p2p.Broadcast(ctx, signedAtt); err != nil {
log.WithError(err).Debug("Failed to broadcast")
}

seems to use broadcast as well

Copy link
Contributor

@shayzluf shayzluf left a comment

Choose a reason for hiding this comment

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

lgtm

@terencechain terencechain merged commit 60d99c8 into master Nov 22, 2020
@delete-merged-branch delete-merged-branch bot deleted the fixPendingQueue branch November 22, 2020 16:42
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

3 participants