neoneo-go/pkg/network
Roman Khimov 2eeec73770 network: don't panic if there is no reason for disconnect
Although error should always be there, we shouldn't fail like this if it's not:
    | panic: runtime error: invalid memory address or nil pointer dereference
    | [signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0xc8884c]
    |
    | goroutine 113 [running]:
    | github.com/nspcc-dev/neo-go/pkg/network.(*Server).run(0xc000150580)
    |         github.com/nspcc-dev/neo-go/pkg/network/server.go:396 +0x7ac
    | github.com/nspcc-dev/neo-go/pkg/network.(*Server).Start(0xc000150580, 0x0)
    |         github.com/nspcc-dev/neo-go/pkg/network/server.go:294 +0x3fb
    | created by github.com/nspcc-dev/neo-go/cli/server.startServer
    |         github.com/nspcc-dev/neo-go/cli/server/server.go:344 +0x56f
2021-11-01 12:19:00 +03:00
..
capability *: enable godot linter and fix all its warnings 2021-05-12 23:17:03 +03:00
extpool rpc: refactor calculatenetworkfee handler 2021-10-25 19:07:25 +03:00
metrics cli,pkg: use zap.Logger 2020-01-10 11:14:27 +03:00
payload core: implement statesync module 2021-09-07 19:43:27 +03:00
blockqueue.go core: implement statesync module 2021-09-07 19:43:27 +03:00
blockqueue_test.go block: replace Base with Header 2021-03-10 13:38:44 +03:00
compress.go network: handle length mismatch in decompression routine 2020-08-03 22:38:55 +03:00
discovery.go *: enable godot linter and fix all its warnings 2021-05-12 23:17:03 +03:00
discovery_test.go network: optimize waiting in test 2021-07-08 11:14:35 +03:00
helper_test.go network: fix race in TestHandleGetMPTData 2021-09-13 11:45:48 +03:00
message.go core: implement statesync module 2021-09-07 19:43:27 +03:00
message_string.go core: implement statesync module 2021-09-07 19:43:27 +03:00
message_test.go core: implement statesync module 2021-09-07 19:43:27 +03:00
notary_feer.go core: introduce mempool notifications 2021-02-02 22:01:32 +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
server.go network: don't panic if there is no reason for disconnect 2021-11-01 12:19:00 +03:00
server_config.go config: fix duration parameter types 2021-09-25 13:13:51 +03:00
server_test.go rpc: refactor calculatenetworkfee handler 2021-10-25 19:07:25 +03:00
tcp_peer.go core: implement statesync module 2021-09-07 19:43:27 +03:00
tcp_peer_test.go protocol: add capabilities to version payload 2020-05-27 19:01:14 +03:00
tcp_transport.go network: don't log transport errors on exit 2021-07-08 10:40:54 +03:00
transport.go protocol: add capabilities to version payload 2020-05-27 19:01:14 +03:00