-
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
Prevent Reinsertion of Orphaned Attestations Into Pool #9442
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #9442 +/- ##
===========================================
+ Coverage 60.41% 60.92% +0.50%
===========================================
Files 581 581
Lines 42830 42915 +85
===========================================
+ Hits 25877 26146 +269
+ Misses 13054 12804 -250
- Partials 3899 3965 +66 |
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.
Please add feature flag for testing
beacon-chain/blockchain/head.go
Outdated
@@ -143,6 +144,12 @@ func (s *Service) saveHead(ctx context.Context, headRoot [32]byte) error { | |||
}, | |||
}) | |||
|
|||
if featureconfig.Get().CorrectlyInsertOrphanedAtts { |
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.
Let's move this inside of the saveOrphanedAtts function so that callers dont need to keep track of feature flags
* Can re-save orphaned attestation * Go fmt * Fix tests * Go fmt * Bug fix flag * Bug fix flag * Go fmt Co-authored-by: Raul Jordan <raul@prysmaticlabs.com> Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com> (cherry picked from commit 5c96a27)
Fixes #9441
This ensures we can re-insert orphaned attestations back to the attestation pool for later inclusion into beacon block. Attestation that is one epoch old will get filtered out