sentry: error checking fix (#8566)

This commit is contained in:
Dmytro 2023-10-24 11:49:48 +03:00 committed by GitHub
parent c1697caea3
commit b9a8c2d6e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -627,7 +627,7 @@ func NewGrpcServer(ctx context.Context, dialCandidates func() enode.Iterator, re
ss.GoodPeers.Store(peerID, peerInfo)
ss.sendNewPeerToClients(gointerfaces.ConvertHashToH512(peerID))
getBlockHeadersErr := ss.getBlockHeaders(ctx, *peerBestHash, peerID)
if err != nil {
if getBlockHeadersErr != nil {
return p2p.NewPeerError(p2p.PeerErrorFirstMessageSend, p2p.DiscNetworkError, getBlockHeadersErr, "p2p.Protocol.Run getBlockHeaders failure")
}