TraversalState
constructor(target: Sha1Hash, resultsTarget: Int = DEFAULT_RESULTS_TARGET, branchFactor: Int = DEFAULT_BRANCH_FACTOR)
Parameters
target
the lookup target id (an info-hash for get_peers, our own id for a bootstrap find_node).
resultsTarget
how many of the closest nodes must respond before the lookup is done. This is Kademlia's k (libtorrent uses m_table.bucket_size(), default 8).
branchFactor
the maximum number of concurrent in-flight queries among the top candidates. This is Kademlia's α (libtorrent's m_branch_factor, default 3).