From bbe174ee4a0350b5f458eed7b7ea7b5004a34f83 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Thu, 18 Jun 2020 21:34:45 +0300 Subject: [PATCH] network: fix inverted logic of address addition to the pool Fix #1066. --- pkg/network/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/network/server.go b/pkg/network/server.go index befc08ef4..2127691dd 100644 --- a/pkg/network/server.go +++ b/pkg/network/server.go @@ -648,7 +648,7 @@ func (s *Server) handleTxCmd(tx *transaction.Transaction) error { func (s *Server) handleAddrCmd(p Peer, addrs *payload.AddressList) error { for _, a := range addrs.Addrs { addr, err := a.GetTCPAddress() - if err != nil { + if err == nil { s.discovery.BackFill(addr) } }