This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# in this algorithm, all notions of *sorting*, *close* or *distance* | |
# are relative to the XOR distance with the target ID | |
# as defined in the Kademlia spec | |
- iterative find (target ID) -> | |
# initializations | |
HeardOf <- XOR Sorted Array of peers | |
initialized with the 50 (or less) closest peers we know from the our routing table | |
Reached <- XOR Sorted Array of peers | |
Queried <- Array of peers |