7b5107b73f
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: Felix Lange <fjl@twurst.com> |
||
---|---|---|
.. | ||
v4wire | ||
common.go | ||
lookup.go | ||
node.go | ||
ntp.go | ||
table_test.go | ||
table_util_test.go | ||
table.go | ||
v4_lookup_test.go | ||
v4_udp_test.go | ||
v4_udp.go | ||
v5_encoding_test.go | ||
v5_encoding.go | ||
v5_session.go | ||
v5_udp_test.go | ||
v5_udp.go |