neoneo-go/pkg/network
Roman Khimov 53423b7c37 network: fix panic in blockqueue during shutdown
panic: send on closed channel

goroutine 116 [running]:
github.com/nspcc-dev/neo-go/pkg/network.(*blockQueue).putBlock(0xc00011b650, 0xc01e371200)
        github.com/nspcc-dev/neo-go/pkg/network/blockqueue.go:129 +0x185
github.com/nspcc-dev/neo-go/pkg/network.(*Server).handleBlockCmd(0xc0002d3c00, {0xf69b7f?, 0xc001520010?}, 0xc02eb44000?)
        github.com/nspcc-dev/neo-go/pkg/network/server.go:607 +0x6f
github.com/nspcc-dev/neo-go/pkg/network.(*Server).handleMessage(0xc0002d3c00, {0x121f4c8?, 0xc001528000?}, 0xc01e35cf80)
        github.com/nspcc-dev/neo-go/pkg/network/server.go:1160 +0x6c5
github.com/nspcc-dev/neo-go/pkg/network.(*TCPPeer).handleIncoming(0xc001528000)
        github.com/nspcc-dev/neo-go/pkg/network/tcp_peer.go:189 +0x98
created by github.com/nspcc-dev/neo-go/pkg/network.(*TCPPeer).handleConn
        github.com/nspcc-dev/neo-go/pkg/network/tcp_peer.go:164 +0xcf
2022-04-26 00:31:48 +03:00
..
capability *: enable godot linter and fix all its warnings 2021-05-12 23:17:03 +03:00
extpool network: decouple it from blockchainer.Blockchainer 2022-01-14 19:57:16 +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 network: fix panic in blockqueue during shutdown 2022-04-26 00:31:48 +03:00
blockqueue_test.go network: don't request blocks we already have in the queue 2022-01-18 00:04:41 +03:00
compress.go network: check compressed payload size in decompress 2022-03-24 17:22: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
fuzz_test.go network: check compressed payload size in decompress 2022-03-24 17:22:55 +03:00
helper_test.go blockchainer/network: move StateSync interface to the user 2022-01-14 19:57:14 +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 network: check compressed payload size in decompress 2022-03-24 17:22:55 +03:00
notary_feer.go network: decouple it from blockchainer.Blockchainer 2022-01-14 19:57:16 +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: extend Service with Name, use it to distinguish services 2022-04-26 00:31:48 +03:00
server_config.go config: fix duration parameter types 2021-09-25 13:13:51 +03:00
server_test.go network: extend Service with Name, use it to distinguish services 2022-04-26 00:31:48 +03:00
state_sync.go network: decouple it from blockchainer.Blockchainer 2022-01-14 19:57:16 +03:00
tcp_peer.go network: keep a copy of the config inside of Server 2022-01-24 18:43:01 +03:00
tcp_peer_test.go protocol: add capabilities to version payload 2020-05-27 19:01:14 +03:00
tcp_transport.go network: use net.ErrClosed to check network connection was closed 2022-03-17 19:39:18 +03:00
transport.go protocol: add capabilities to version payload 2020-05-27 19:01:14 +03:00