good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit 7b5107b7 authored by timcooijmans's avatar timcooijmans Committed by GitHub
Browse files

p2p/discover: avoid dropping unverified nodes when table is almost empty (#21396)


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: default avatarFelix Lange <fjl@twurst.com>
parent bdde616f
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment