mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 21:38:05 -05:00
fix error message of subscriber (#11622)
Co-authored-by: terencechain <terence@prysmaticlabs.com> Co-authored-by: Radosław Kapka <rkapka@wp.pl>
This commit is contained in:
@@ -15,7 +15,7 @@ import (
|
||||
func (s *Service) beaconAggregateProofSubscriber(_ context.Context, msg proto.Message) error {
|
||||
a, ok := msg.(*ethpb.SignedAggregateAttestationAndProof)
|
||||
if !ok {
|
||||
return fmt.Errorf("message was not type *eth.SignedAggregateAttestationAndProof, type=%T", msg)
|
||||
return fmt.Errorf("message was not type *ethpb.SignedAggregateAttestationAndProof, type=%T", msg)
|
||||
}
|
||||
|
||||
if a.Message.Aggregate == nil || a.Message.Aggregate.Data == nil {
|
||||
|
||||
@@ -13,7 +13,7 @@ import (
|
||||
func (s *Service) syncCommitteeMessageSubscriber(_ context.Context, msg proto.Message) error {
|
||||
m, ok := msg.(*ethpb.SyncCommitteeMessage)
|
||||
if !ok {
|
||||
return fmt.Errorf("message was not type *eth.SyncCommitteeMessage, type=%T", msg)
|
||||
return fmt.Errorf("message was not type *ethpb.SyncCommitteeMessage, type=%T", msg)
|
||||
}
|
||||
|
||||
if m == nil {
|
||||
|
||||
@@ -15,7 +15,7 @@ import (
|
||||
func (s *Service) syncContributionAndProofSubscriber(_ context.Context, msg proto.Message) error {
|
||||
sContr, ok := msg.(*ethpb.SignedContributionAndProof)
|
||||
if !ok {
|
||||
return fmt.Errorf("message was not type *eth.SignedAggregateAttestationAndProof, type=%T", msg)
|
||||
return fmt.Errorf("message was not type *ethpb.SignedContributionAndProof, type=%T", msg)
|
||||
}
|
||||
|
||||
if sContr.Message == nil || sContr.Message.Contribution == nil {
|
||||
|
||||
Reference in New Issue
Block a user