From 5f7d055e6c745ac8c8e5a9a7f0bd5ea5bc3d448c Mon Sep 17 00:00:00 2001 From: Mehmet Gurevin Date: Thu, 18 Oct 2018 19:22:09 +0300 Subject: [PATCH] use NodeInfo as an interface --- p2p/pex/pex_reactor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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