diff --git a/p2p/pex/pex_reactor.go b/p2p/pex/pex_reactor.go index 52069ddef..33f6516a1 100644 --- a/p2p/pex/pex_reactor.go +++ b/p2p/pex/pex_reactor.go @@ -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