I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit f938090d authored by zzz's avatar zzz
Browse files

NetDB: Don't send 'fake hash' for exploration any more,

no longer required for compatibility,
exploration option supported since 0.9.16
parent d9ea6b1f
No related branches found
No related tags found
No related merge requests found
...@@ -98,14 +98,7 @@ class ExploreJob extends SearchJob { ...@@ -98,14 +98,7 @@ class ExploreJob extends SearchJob {
int available = MAX_CLOSEST - dontIncludePeers.size(); int available = MAX_CLOSEST - dontIncludePeers.size();
if (_isRealExplore) { if (_isRealExplore) {
if (available > 0) { // supported as of 0.9.16. We don't add "fake hash" any more.
// Add a flag to say this is an exploration and we don't want floodfills in the responses.
// Doing it this way is of course backwards-compatible.
// Supported as of 0.7.9
if (dontIncludePeers.add(Hash.FAKE_HASH))
available--;
}
// supported as of 0.9.16. TODO remove fake hash above
msg.setSearchType(DatabaseLookupMessage.Type.EXPL); msg.setSearchType(DatabaseLookupMessage.Type.EXPL);
} else { } else {
msg.setSearchType(DatabaseLookupMessage.Type.RI); msg.setSearchType(DatabaseLookupMessage.Type.RI);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment