probe-lab / go-kademlia

Generic Go Kademlia implementation
Other
17 stars 4 forks source link

Add include state machine #95

Closed iand closed 1 year ago

iand commented 1 year ago

Based on sm-bootstrap branch (#90)

This adds a state machine for running the include process described in https://github.com/plprobelab/go-kademlia/issues/45. The state machine manages a queue of candidates nodes and processes them by checking whether they respond to a find node request. Candidates that respond with one or more closer nodes are considered live and added to the routing table. Nodes that do not respond or do not provide any suggested closer nodes are dropped from the queue. The number of concurrent checks in flight is configurable.

Not done yet: