-
Notifications
You must be signed in to change notification settings - Fork 90
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
core/bcast: make lighthouse submit attestations idempotent #813
Conversation
Codecov Report
@@ Coverage Diff @@
## main #813 +/- ##
==========================================
- Coverage 54.87% 54.57% -0.30%
==========================================
Files 109 109
Lines 10772 10785 +13
==========================================
- Hits 5911 5886 -25
- Misses 3997 4037 +40
+ Partials 864 862 -2
Continue to review full report at Codecov.
|
core/bcast/bcast.go
Outdated
@@ -81,6 +82,12 @@ func (b Broadcaster) Broadcast(ctx context.Context, duty core.Duty, | |||
} | |||
|
|||
err = b.eth2Cl.SubmitAttestations(ctx, []*eth2p0.Attestation{&att.Attestation}) | |||
if err != nil && (strings.Contains(err.Error(), "PriorAttestationKnown") || | |||
strings.Contains(err.Error(), "No peers on libp2p topic")) { |
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.
don't think nimbus "No peers on libp2p topic " is the same issue, rather remove please: See https://github.com/status-im/nimbus-eth2/blob/88532c61772ed8c065fe7ab2e9204a8c40de4656/docs/the_nimbus_book/src/troubleshooting.md#no-peers-for-topic
Catch and ignore lighthouse non-idempotent error. This follows the example set inside goeth2client (but only used for failover in multi-client setup).
category: bug
ticket: #777