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

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

Router: Increase exploratory tunnel quantity if floodfill

parent 071498c4
No related branches found
No related tags found
No related merge requests found
...@@ -324,10 +324,16 @@ public class TunnelPool { ...@@ -324,10 +324,16 @@ public class TunnelPool {
* length settings. Although I guess inbound and outbound exploratory * length settings. Although I guess inbound and outbound exploratory
* could be different too, and inbound is harder... * could be different too, and inbound is harder...
* *
* As of 0.9.19, add more if exploratory and floodfill, as floodfills
* generate a lot of exploratory traffic.
* TODO high-bandwidth non-floodfills do also...
*
* @since 0.8.11 * @since 0.8.11
*/ */
private int getAdjustedTotalQuantity() { private int getAdjustedTotalQuantity() {
int rv = _settings.getTotalQuantity(); int rv = _settings.getTotalQuantity();
if (_settings.isExploratory() && _context.netDb().floodfillEnabled())
rv += 3;
if (_settings.isExploratory() && rv > 1) { if (_settings.isExploratory() && rv > 1) {
RateStat e = _context.statManager().getRate("tunnel.buildExploratoryExpire"); RateStat e = _context.statManager().getRate("tunnel.buildExploratoryExpire");
RateStat r = _context.statManager().getRate("tunnel.buildExploratoryReject"); RateStat r = _context.statManager().getRate("tunnel.buildExploratoryReject");
......
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