forked from I2P_Developers/i2p.i2p
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:
@ -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);
|
||||||
|
Reference in New Issue
Block a user