Browse Source

use NodeInfo as an interface

pull/2664/head
Mehmet Gurevin 6 years ago
parent
commit
5f7d055e6c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      p2p/pex/pex_reactor.go

+ 1
- 1
p2p/pex/pex_reactor.go View File

@ -394,7 +394,7 @@ func (r *PEXReactor) ensurePeers() {
if r.Switch.IsDialingOrExistingAddress(try) {
continue
}
if r.Switch.NodeInfo().ID == try.ID {
if r.Switch.NodeInfo().ID() == try.ID {
continue // we don't want to dial ourselves, usually.
}
// TODO: consider moving some checks from toDial into here


Loading…
Cancel
Save