mirror of
https://github.com/wealdtech/ethdo.git
synced 2026-01-09 14:07:56 -05:00
Return on error.
This commit is contained in:
@@ -123,8 +123,10 @@ func (c *command) analyzeAttestations(ctx context.Context, block *spec.Versioned
|
|||||||
case spec.DataVersionElectra:
|
case spec.DataVersionElectra:
|
||||||
analysis, err = c.electraAnalysis(ctx, slot, attestation.Electra, blockVotes, spec.DataVersionElectra)
|
analysis, err = c.electraAnalysis(ctx, slot, attestation.Electra, blockVotes, spec.DataVersionElectra)
|
||||||
default:
|
default:
|
||||||
return fmt.Errorf("unknown version %s\n", attestation.Version)
|
return fmt.Errorf("unknown version %s", attestation.Version)
|
||||||
|
}
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// Calculate score and value.
|
// Calculate score and value.
|
||||||
|
|||||||
Reference in New Issue
Block a user