• timcooijmans's avatar
    p2p/discover: avoid dropping unverified nodes when table is almost empty (#21396) · 7b5107b7
    timcooijmans authored
    This change improves discovery behavior in small networks. Very small
    networks would often fail to bootstrap because all member nodes were
    dropping table content due to findnode failure. The check is now changed
    to avoid dropping nodes on findnode failure when their bucket is almost
    empty. It also relaxes the liveness check requirement for FINDNODE/v4
    response nodes, returning unverified nodes as results when there aren't
    any verified nodes yet.
    
    The "findnode failed" log now reports whether the node was dropped
    instead of the number of results. The value of the "results" was
    always zero by definition.
    Co-authored-by: 's avatarFelix Lange <fjl@twurst.com>
    Unverified
    7b5107b7
Name
Last commit
Last update
..
discover p2p/discover: avoid dropping unverified nodes when table is almost empty (#21396)
discv5 p2p/discv5: unset pingEcho on pong timeout (#21324)
dnsdisc all: fix typos in comments (#21118)
enode p2p/enode: update code comment (#20972)
enr core/forkid: implement the forkid EIP, announce via ENR (#19738)
nat p2p/nat: limit UPNP request concurrency (#21390)
netutil p2p/netutil: fix staticcheck warning (#20315)
nodestate les, les/lespay: implement new server pool (#20758)
simulations node: refactor package node (#21105)
dial.go p2p: add 0 port check in dialer (#21008)
dial_test.go p2p: new dial scheduler (#20592)
message.go p2p: measure subprotocol bandwidth usage
message_test.go all: fix go vet warnings
metrics.go p2p: remove MeteredPeerEvent (#20679)
peer.go p2p: measure packet throughput too, not just bandwidth
peer_error.go p2p: fix some golint warnings (#16577)
peer_test.go p2p: new dial scheduler (#20592)
protocol.go cmd/devp2p, p2p: dial using node iterator, discovery crawler (#20132)
rlpx.go p2p: measure packet throughput too, not just bandwidth
rlpx_test.go all: fix typos in comments (#21118)
server.go p2p/server: add UDP port mapping goroutine to wait group (#20846)
server_test.go all: fix goroutine leaks in unit tests by adding 1-elem channel buffer (#20666)
util.go p2p: new dial scheduler (#20592)
util_test.go p2p: new dial scheduler (#20592)