mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
p2p: add comment
This commit is contained in:
parent
d89533817a
commit
1372f8b1c6
1 changed files with 3 additions and 0 deletions
|
|
@ -390,6 +390,9 @@ func (d *dialScheduler) checkDial(n *enode.Node) error {
|
|||
return errSelf
|
||||
}
|
||||
if n.IP() != nil && n.TCP() == 0 {
|
||||
// This check can trigger if a non-TCP node is found
|
||||
// by discovery. If there is no IP, the node is a static
|
||||
// node and the actual endpoint will be resolved later in dialTask.
|
||||
return errNoPort
|
||||
}
|
||||
if _, ok := d.dialing[n.ID()]; ok {
|
||||
|
|
|
|||
Loading…
Reference in a new issue