network: drop now useless addrReq queue from the server
Just broadcast a high-priority message to everyone.
This commit is contained in:
parent
f2ffffddb7
commit
99dfdc19e7
2 changed files with 1 additions and 16 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue