neoneo-go/pkg/network
Roman Khimov 7cf9a40468 network: fix MaxPeers, introduce AttemptConnPeers
Our node didn't respect the MaxPeers setting, fix it with a drop of random
connection when this limit is reached (to give a chance for newcomers to
communicate), but also introduce AttemptConnPeers setting to tune the number
of attempted connections.

This also raises the default MaxPeers for testnet/mainnet to 100, because
neo-go nodes love making friends.
2019-11-06 15:29:58 +03:00
..
metrics monitoring: add prometheus monitoring 2019-10-29 20:51:17 +03:00
payload fix spelling and godoc comments 2019-10-22 17:56:03 +03:00
blockqueue.go monitoring: add prometheus monitoring 2019-10-29 20:51:17 +03:00
blockqueue_test.go network: add block queue 2019-09-27 13:00:09 +03:00
discovery.go monitoring: add prometheus monitoring 2019-10-29 20:51:17 +03:00
discovery_test.go network: rework discovery with rwmutex, add test 2019-10-28 13:37:27 +03:00
helper_test.go network: split Peer's NetAddr into RemoteAddr and PeerAddr 2019-11-06 15:26:24 +03:00
message.go fix spelling and godoc comments 2019-10-22 17:56:03 +03:00
message_test.go Node improvements (#47) 2018-03-14 10:36:59 +01:00
peer.go network: split Peer's NetAddr into RemoteAddr and PeerAddr 2019-11-06 15:26:24 +03:00
prometheus.go monitoring: add prometheus monitoring 2019-10-29 20:51:17 +03:00
relay_reason.go fix spelling and godoc comments 2019-10-22 17:56:03 +03:00
server.go network: fix MaxPeers, introduce AttemptConnPeers 2019-11-06 15:29:58 +03:00
server_config.go network: fix MaxPeers, introduce AttemptConnPeers 2019-11-06 15:29:58 +03:00
server_test.go network: disallow double connections to the same peer 2019-11-06 15:29:58 +03:00
tcp_peer.go network: rework peer handshaking, fix #458 2019-11-06 15:29:58 +03:00
tcp_peer_test.go network: rework peer handshaking, fix #458 2019-11-06 15:29:58 +03:00
tcp_transport.go fix spelling and godoc comments 2019-10-22 17:56:03 +03:00
transport.go Fixed some networking issues (#68) 2018-04-13 12:14:08 +02:00