neo-go/pkg
Roman Khimov 734338ad70 network: move Version sending to the tcp transport
We have a race between reader and writer goroutines for the same connection
that leads to handshake failures when reader is faster to read the incoming
version (and try to reply to it) than writer is to write our own Version:

WARN[0000] peer disconnected                             addr="172.200.0.4:20334" peerCount=5 reason="invalid handshake: tried to send VersionAck, but didn't send Version yet

Fix it by moving Version sending before the reader loop starts.
2019-11-29 11:05:42 +03:00
..
consensus network: plug in dBFT library 2019-11-27 10:57:22 +03:00
core Merge pull request #507 from nspcc-dev/dbft 2019-11-27 15:22:40 +03:00
crypto crypto: add unit tests for public key 2019-11-21 15:41:49 +03:00
internal/keytestcases *: add/fix godoc comments to satisfy golint 2019-09-03 17:57:51 +03:00
interop fix spelling and godoc comments 2019-10-22 17:56:03 +03:00
io io: restrict ReadArray max array size 2019-11-15 22:39:21 +03:00
network network: move Version sending to the tcp transport 2019-11-29 11:05:42 +03:00
rpc rpc: add marshaler for StackParamType 2019-11-27 13:00:11 +03:00
smartcontract smartcontract: add user-facing testinvokefunction command 2019-11-27 15:12:15 +03:00
util util: add missing tests for Uint256 2019-11-25 11:55:26 +03:00
vm vm: add IterBack to the Stack to iterate bottom-to-top 2019-11-27 13:00:11 +03:00
wallet network: plug in dBFT library 2019-11-27 10:57:22 +03:00