You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As @skeggse suggested in #15, it may be useful/correct when dealing with responses that are not the exact match of the node we are looking for (those that point to closer nodes to ask next) to add these intermediate nodes to our knowledge of the DHT.
The text was updated successfully, but these errors were encountered:
More precisely, instead of only checking "closer-but-not-exact" responses against locally registered contacts like we do here index.js#L128:
if(Array.isArray(response)){// arbiter "closer" responses against locally registered contactsresponse.forEach(function(res){if(self.kBuckets[res.id]){self.kBuckets[res.id].contact=self.arbiter(self.kBuckets[res.id].contact,res);}});
also add them to our local DHT knowledge:
if(Array.isArray(response)){// arbiter "closer" responses against locally registered contactsresponse.forEach(function(res){self.add(res);// add() handlers arbitration on its own});
As @skeggse suggested in #15, it may be useful/correct when dealing with responses that are not the exact match of the node we are looking for (those that point to closer nodes to ask next) to add these intermediate nodes to our knowledge of the DHT.
The text was updated successfully, but these errors were encountered: