mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 01:27:38 +00:00
sentry: error checking fix (#8566)
This commit is contained in:
parent
c1697caea3
commit
b9a8c2d6e6
@ -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")
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user