Skip to content

Commit

Permalink
fix atLeastOneSubmitted usage
Browse files Browse the repository at this point in the history
  • Loading branch information
moshe-blox committed Jan 21, 2025
1 parent 5d6632c commit 4bbd75a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions beacon/goclient/proposer.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,15 +238,15 @@ func (gc *GoClient) SubmitBlindedBeaconBlock(block *api.VersionedBlindedProposal
return nil
})
}

// At least one client has submitted the proposal successfully.
// Wait for the other clients to finish, just in case
// the successful client returned a false positive.
if err := p.Wait(); err != nil {
err := p.Wait()
if atLeastOneSubmitted.Load() {
// At least one client has submitted the proposal successfully.
return nil
}
if err != nil {
logger.Error("no consensus clients have been able to submit blinded proposal. See adjacent logs for error details.")
return fmt.Errorf("no consensus clients have been able to submit blinded proposal")
}

return nil
}

Expand Down

0 comments on commit 4bbd75a

Please sign in to comment.