network: enlarge address request queue

Queuing one message is not reliable enough, the peer that gets it can fail to
actually make a request, so make this queue a bit deeper to have a higher
chance of success.
This commit is contained in:
Roman Khimov 2019-09-13 19:50:33 +03:00
parent d3bb8ddf8f
commit 46dc141c6c

View file

@ -67,7 +67,7 @@ func NewServer(config ServerConfig, chain core.Blockchainer) *Server {
chain: chain,
id: rand.Uint32(),
quit: make(chan struct{}),
addrReq: make(chan *Message, 1),
addrReq: make(chan *Message, minPeers),
register: make(chan Peer),
unregister: make(chan peerDrop),
peers: make(map[Peer]bool),