|
|
|
@ -704,13 +704,15 @@ namespace data
@@ -704,13 +704,15 @@ namespace data
|
|
|
|
|
if (!replyMsg) |
|
|
|
|
{ |
|
|
|
|
LogPrint ("Requested ", key, " not found. ", numExcluded, " excluded"); |
|
|
|
|
std::vector<IdentHash> routers; |
|
|
|
|
if (numExcluded > 0) |
|
|
|
|
{ |
|
|
|
|
std::set<IdentHash> excludedRouters; |
|
|
|
|
for (int i = 0; i < numExcluded; i++) |
|
|
|
|
{ |
|
|
|
|
excludedRouters.insert (excluded); |
|
|
|
|
excluded += 32; |
|
|
|
|
} |
|
|
|
|
std::vector<IdentHash> routers; |
|
|
|
|
for (int i = 0; i < 3; i++) |
|
|
|
|
{ |
|
|
|
|
auto floodfill = GetClosestFloodfill (buf, excludedRouters); |
|
|
|
@ -720,6 +722,9 @@ namespace data
@@ -720,6 +722,9 @@ namespace data
|
|
|
|
|
excludedRouters.insert (floodfill->GetIdentHash ()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
routers = GetClosestFloodfills (buf, 3); |
|
|
|
|
replyMsg = CreateDatabaseSearchReply (buf, routers); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|