neoneo-go/pkg/network
Roman Khimov 163d90c866 network: don't register addresses before version handshake
1) It duplicates registration in `version` message handler and no valid
   connection can work without version exchange.
2) On public networks we have seed nodes defined by names, so we register
   connections to them using these names, but then if connection is dropped we
   delist them by IP:PORT combinations which can lead to zero PeerCount() with
   all seeds still being registered as connected in the discovery subsystem
   and thus no reconnection attempts being made.
2021-01-18 21:10:06 +03:00
..
capability capability: prevent panic on wrong capabilities receival 2020-05-29 00:11:54 +03:00
metrics cli,pkg: use zap.Logger 2020-01-10 11:14:27 +03:00
payload network: add notary request payload 2020-12-10 18:17:31 +03:00
blockqueue.go network: restrict block queue size 2020-09-02 17:04:49 +03:00
blockqueue_test.go network/test: add tests for server commands 2020-12-09 15:23:49 +03:00
compress.go network: handle length mismatch in decompression routine 2020-08-03 22:38:55 +03:00
discovery.go network: don't register addresses before version handshake 2021-01-18 21:10:06 +03:00
discovery_test.go network: don't register addresses before version handshake 2021-01-18 21:10:06 +03:00
helper_test.go network: support non-blocking broadcast 2020-12-25 14:36:52 +03:00
message.go network: provide NullPayload where necessary 2020-12-25 14:36:53 +03:00
message_string.go network: rename GetBlockData command 2020-08-04 17:52:34 +03:00
message_test.go network/test: add tests for server commands 2020-12-09 15:23:49 +03:00
notary_feer.go network: add notary request payload 2020-12-10 18:17:31 +03:00
peer.go network: support non-blocking broadcast 2020-12-25 14:36:52 +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 a bug in discovery with a peer connected twice 2020-12-25 14:36:53 +03:00
server_config.go *: move wallet config from wallet to config package 2020-06-29 09:15:29 +03:00
server_test.go core: redefine opcode prices 2020-12-16 13:55:39 +03:00
tcp_peer.go network: set timeout on write 2020-12-25 14:36:53 +03:00
tcp_peer_test.go protocol: add capabilities to version payload 2020-05-27 19:01:14 +03:00
tcp_transport.go network: fix datarace in TCPTransport 2020-09-18 12:07:02 +03:00
transport.go protocol: add capabilities to version payload 2020-05-27 19:01:14 +03:00