network: drop now useless addrReq queue from the server

Just broadcast a high-priority message to everyone.
This commit is contained in:
Roman Khimov 2020-01-22 11:28:59 +03:00
parent f2ffffddb7
commit 99dfdc19e7
2 changed files with 1 additions and 16 deletions

View file

@ -198,13 +198,6 @@ func (p *TCPPeer) StartProtocol() {
select {
case <-p.done:
return
case m := <-p.server.addrReq:
var pkt []byte
pkt, err = m.Bytes()
if err == nil {
err = p.EnqueueHPPacket(pkt)
}
case <-timer.C:
// Try to sync in headers and block with the peer if his block height is higher then ours.
if p.LastBlockIndex() > p.server.chain.BlockHeight() {