Official Go implementation of the Ethereum protocol
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Martin Holst Swende
06151eb581
p2p/msgrate: be more lenient when calculating 'mean' ( #25653 )
...
The p2p msgrate tracker is a thing which tries to estimate some mean round-trip times. However, it did so in a very curious way: if a node had 200 peers, it would sort their 200 respective rtt estimates, and then it would pick item number 2 as the mean. So effectively taking third fastest and calling it mean. This probably works "ok" when the number of peers are low (there are other factors too, such as ttlScaling which takes some of the edge off this) -- however when the number of peers is high, it becomes very skewed.
This PR instead bases the 'mean' on the square root of the length of the list. Still pretty harsh, but a bit more lenient.
2 years ago
..
discover
all: remove duplicate word in comments ( #25618 )
2 years ago
dnsdisc
p2p: use errors.Is for error comparison ( #24882 )
2 years ago
enode
all: use T.TempDir to create temporary test directories ( #24633 )
3 years ago
enr
p2p: use errors.Is for error comparison ( #24882 )
2 years ago
msgrate
p2p/msgrate: be more lenient when calculating 'mean' ( #25653 )
2 years ago
nat
all: more linters ( #24783 )
2 years ago
netutil
p2p/netutil: minor code cosmetic
2 years ago
nodestate
les/vflux/client, p2p/nodestate: fix data races ( #24058 )
3 years ago
rlpx
all: update license headers and AUTHORS from git history ( #24947 )
2 years ago
simulations
all: add whitespace linter ( #25312 )
2 years ago
tracker
all: fix some typos ( #25551 )
2 years ago
dial.go
p2p, p2p/enode: fix data races ( #23434 )
3 years ago
dial_test.go
p2p: new dial scheduler ( #20592 )
5 years ago
message.go
all: replace uses of ioutil with io and os ( #24869 )
3 years ago
message_test.go
p2p: move rlpx into separate package ( #21464 )
4 years ago
metrics.go
eth/protocols, prp/tracker: add support for req/rep rtt tracking ( #22608 )
4 years ago
peer.go
p2p: use errors.Is for error comparison ( #24882 )
2 years ago
peer_error.go
p2p: use errors.Is for error comparison ( #24882 )
2 years ago
peer_test.go
p2p: move rlpx into separate package ( #21464 )
4 years ago
protocol.go
cmd/devp2p, p2p: dial using node iterator, discovery crawler ( #20132 )
5 years ago
server.go
cmd/geth, p2p: add support for custom discovery UDP port ( #24979 )
2 years ago
server_test.go
all: fix warning flagging the use of DeepEqual on error ( #23624 )
3 years ago
transport.go
all: update license headers and AUTHORS from git history ( #24947 )
2 years ago
transport_test.go
all: update license headers and AUTHORS from git history ( #24947 )
2 years ago
util.go
p2p: new dial scheduler ( #20592 )
5 years ago
util_test.go
p2p: new dial scheduler ( #20592 )
5 years ago