neo-go/pkg/network
Roman Khimov d69f8ebbab network: optimize optimalN for small networks
Consider 10-node network. FanOut is 6 for it. optimalN is 12. But it's a
10-node network, you can't have more than 9 peers there. So adjust the formula
for netSize-1.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
2024-12-05 22:31:19 +03:00
..
bqueue queue: add Blocking OperationMode 2024-09-09 10:28:15 +04:00
capability [#2442] English Check 2022-05-04 19:48:27 +03:00
extpool *: use require.ErrorIs instead of require.True(t, error.Is()) 2023-05-04 17:03:47 +03:00
payload *: improve for loop syntax 2024-08-30 21:45:18 +03:00
compress.go network: check compressed payload size in decompress 2022-03-24 17:22:55 +03:00
discovery.go *: stop using math/rand 2024-08-30 17:00:11 +03:00
discovery_test.go *: improve for loop syntax 2024-08-30 21:45:18 +03:00
fuzz_test.go *: improve for loop syntax 2024-08-30 21:45:18 +03:00
helper_test.go config: add a special Blockchain type to configure Blockchain 2022-12-07 17:35:53 +03:00
message.go golangci: enable errorlint and fix everything it found 2022-09-02 18:36:23 +03:00
message_string.go *: update Stringers wrt fresh Stringer version 2023-10-19 11:33:07 +03:00
message_test.go *: improve for loop syntax 2024-08-30 21:45:18 +03:00
notary_feer.go *: move NVB and Conflicts attributes out of extensions 2023-09-04 16:39:44 +03:00
peer.go neorpc: extend getpeers method 2024-06-27 10:41:59 +01:00
prometheus.go *: move metric neogo_version out of pkg/network 2024-11-29 16:58:11 +03:00
server.go network: optimize optimalN for small networks 2024-12-05 22:31:19 +03:00
server_config.go services: add new service for fetching blocks from NeoFS 2024-09-11 08:50:31 +04:00
server_test.go *: fix linter exhaustive errors 2024-09-26 13:29:03 +03:00
state_sync.go network: move blockqueue to a separate package 2023-03-15 17:37:47 +03:00
tcp_peer.go tcp_peer: Fix possible goroutine leak 2024-02-25 22:38:18 +03:00
tcp_peer_test.go ci: fix lint issues (fix #2948) 2023-03-29 11:19:23 +08:00
tcp_transport.go *: use zap.Stringer instead of zap.String where it can be used 2022-12-13 12:44:54 +03:00
transport.go network: allow multiple bind addresses for server 2022-12-07 13:06:03 +03:00