Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
src/query/peers/closest: Have iterator consider alpha peers at init
To allign with the Kademlia paper this commit makes the `ClosestPeersIter` consider the closest alpha peers at initialization, instead of `num_results` (which is equal to the k-value). Aligning with the paper also applies aligning with the libp2p Golang implementation as well as the xlattice specification.
- Loading branch information