• 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>
    7b5107b7
Name
Last commit
Last update
..
discover Loading commit data...
discv5 Loading commit data...
dnsdisc Loading commit data...
enode Loading commit data...
enr Loading commit data...
nat Loading commit data...
netutil Loading commit data...
nodestate Loading commit data...
simulations Loading commit data...
dial.go Loading commit data...
dial_test.go Loading commit data...
message.go Loading commit data...
message_test.go Loading commit data...
metrics.go Loading commit data...
peer.go Loading commit data...
peer_error.go Loading commit data...
peer_test.go Loading commit data...
protocol.go Loading commit data...
rlpx.go Loading commit data...
rlpx_test.go Loading commit data...
server.go Loading commit data...
server_test.go Loading commit data...
util.go Loading commit data...
util_test.go Loading commit data...