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

no longer required for compatibility,
exploration option supported since 0.9.16
This commit is contained in:
zzz
2020-02-25 14:36:44 +00:00
parent d9ea6b1f9c
commit f938090d6a

View File

@ -98,14 +98,7 @@ class ExploreJob extends SearchJob {
int available = MAX_CLOSEST - dontIncludePeers.size();
if (_isRealExplore) {
if (available > 0) {
// 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
// supported as of 0.9.16. We don't add "fake hash" any more.
msg.setSearchType(DatabaseLookupMessage.Type.EXPL);
} else {
msg.setSearchType(DatabaseLookupMessage.Type.RI);