From 53704f74055e3d4655723c14dd89c0edebcab3a6 Mon Sep 17 00:00:00 2001 From: Mehmet Gurevin Date: Thu, 8 Nov 2018 17:54:51 +0300 Subject: [PATCH] Revert "use NodeInfo as an interface" This reverts commit 5f7d055e6c745ac8c8e5a9a7f0bd5ea5bc3d448c. --- 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 33f6516a1..52069ddef 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