• Jeromy's avatar
    Fixes for dht findpeer queries · 00b46e0c
    Jeromy authored
    First, we use Alpha instead of K as the number of peers we grab from the
    routing table (as per the kademlia paper).
    
    Second, we don't use a size limited set for the 'GetClosestPeers' query.
    We're going to process more than K peers before we find the K closest
    peers.
    
    Third, Change GetClosestPeers to actually return the K Closest peers,
    not a hodge podge of peers that it found on the way to finding the
    closest peers.
    00b46e0c
lookup.go 2.83 KB