mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-31 16:21:21 +00:00
Log peer ID (#5416)
This commit is contained in:
parent
506dac35d2
commit
222224ca86
@ -428,6 +428,7 @@ func (hd *HeaderDownload) requestMoreHeadersForPOS(currentTime time.Time) (timeo
|
||||
|
||||
timeout = anchor.timeouts >= 10
|
||||
if timeout {
|
||||
log.Warn("[Downloader] Timeout", "requestId", hd.requestId, "peerID", common.Bytes2Hex(anchor.peerID[:]))
|
||||
penalties = []PenaltyItem{{Penalty: AbandonedAnchorPenalty, PeerID: anchor.peerID}}
|
||||
return
|
||||
}
|
||||
@ -660,7 +661,7 @@ func (hd *HeaderDownload) ProcessHeadersPOS(csHeaders []ChainSegmentHeader, tx k
|
||||
log.Info("[Downloader] posAnchor", "blockHeight", hd.posAnchor.blockHeight)
|
||||
return nil, nil
|
||||
}
|
||||
log.Warn("[Downloader] Unexpected header", "hash", headerHash, "expected", hd.posAnchor.parentHash)
|
||||
log.Warn("[Downloader] Unexpected header", "hash", headerHash, "expected", hd.posAnchor.parentHash, "peerID", common.Bytes2Hex(peerId[:]))
|
||||
return []PenaltyItem{{PeerID: peerId, Penalty: BadBlockPenalty}}, nil
|
||||
}
|
||||
|
||||
@ -1281,7 +1282,6 @@ func (hd *HeaderDownload) StartPoSDownloader(
|
||||
var timeout bool
|
||||
timeout, req, penalties = hd.requestMoreHeadersForPOS(currentTime)
|
||||
if timeout {
|
||||
log.Warn("[Downloader] Timeout", "requestId", hd.requestId)
|
||||
hd.BeaconRequestList.Remove(hd.requestId)
|
||||
hd.cleanUpPoSDownload()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user