mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 05:36:46 +00:00
add a warning level
This commit is contained in:
parent
d5b768c9dc
commit
12bc2fad30
1 changed files with 1 additions and 0 deletions
|
|
@ -52,6 +52,7 @@ func (d *Downloader) GetHeader(hash common.Hash) (*types.Header, error) {
|
|||
|
||||
for _, peer := range d.peers.peers {
|
||||
if peer == nil {
|
||||
log.Warn("Encountered nil peer while retrieving sync target", "hash", hash)
|
||||
continue
|
||||
}
|
||||
// Found a peer, attempt to retrieve the header whilst blocking and
|
||||
|
|
|
|||
Loading…
Reference in a new issue