neoneo-go/pkg/network
Roman Khimov ec76ed23a5 network: rework peer handshaking, fix #458
This allows to start handshaking from both client and server (mainnet/testnet
nodes were seen to not care about string ordering for it), but still maintains
some sane checks in the process. It also makes functions thread-safe because
we have two goroutines servicing read and write side of the Peer connection,
so they can clash on access to the struct fields.

Add a test for it also.
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: split Peer's NetAddr into RemoteAddr and PeerAddr 2019-11-06 15:26:24 +03:00
server_config.go network: make minpeers configurable 2019-10-31 15:10:00 +03:00
server_test.go network: remove port check from handleVersionCmd() 2019-10-17 11:19:24 +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