propagate from branch 'i2p.i2p.zzz.test' (head dc29b32afe515f704985a4f92cda6e28a65ccdc5)
to branch 'i2p.i2p' (head fb38016f22528778128e22269b8f256c8c640466)
This commit is contained in:
@ -18,7 +18,8 @@ public class RouterVersion {
|
||||
/** deprecated */
|
||||
public final static String ID = "Monotone";
|
||||
public final static String VERSION = CoreVersion.VERSION;
|
||||
public final static long BUILD = 17;
|
||||
public final static long BUILD = 2;
|
||||
|
||||
/** for example "-test" */
|
||||
public final static String EXTRA = "";
|
||||
public final static String FULL_VERSION = VERSION + "-" + BUILD + EXTRA;
|
||||
|
@ -27,7 +27,7 @@ class FloodfillMonitorJob extends JobImpl {
|
||||
private static final long MIN_UPTIME = 2*60*60*1000;
|
||||
private static final long MIN_CHANGE_DELAY = 6*60*60*1000;
|
||||
private static final int MIN_FF = 4;
|
||||
private static final int MAX_FF = 6;
|
||||
private static final int MAX_FF = 9;
|
||||
private static final String PROP_FLOODFILL_PARTICIPANT = "router.floodfillParticipant";
|
||||
|
||||
public FloodfillMonitorJob(RouterContext context, FloodfillNetworkDatabaseFacade facade) {
|
||||
|
@ -54,6 +54,7 @@ class FloodfillStoreJob extends StoreJob {
|
||||
@Override
|
||||
protected void succeed() {
|
||||
super.succeed();
|
||||
|
||||
if (_state != null) {
|
||||
if (_facade.isVerifyInProgress(_state.getTarget())) {
|
||||
if (_log.shouldLog(Log.INFO))
|
||||
@ -67,6 +68,8 @@ class FloodfillStoreJob extends StoreJob {
|
||||
boolean isRouterInfo = data instanceof RouterInfo;
|
||||
if (isRouterInfo) {
|
||||
published = ((RouterInfo) data).getPublished();
|
||||
// Temporarily disable
|
||||
return;
|
||||
} else if (data instanceof LeaseSet) {
|
||||
published = ((LeaseSet) data).getEarliestLeaseDate();
|
||||
}
|
||||
|
@ -231,7 +231,7 @@ class KBucketImpl implements KBucket {
|
||||
|
||||
/**
|
||||
* Todo: shuffling here is a hack and doesn't work since
|
||||
* wwe witched back to a HashSet implementation
|
||||
* we switched back to a HashSet implementation
|
||||
*/
|
||||
public int add(Hash peer) {
|
||||
_entries.add(peer);
|
||||
|
@ -910,6 +910,7 @@ public class KademliaNetworkDatabaseFacade extends NetworkDatabaseFacade {
|
||||
return TIMEOUT_MULTIPLIER * (int)responseTime; // give it up to 3x the average response time
|
||||
}
|
||||
|
||||
/** unused (overridden in FNDF) */
|
||||
public void sendStore(Hash key, DataStructure ds, Job onSuccess, Job onFailure, long sendTimeout, Set toIgnore) {
|
||||
if ( (ds == null) || (key == null) ) {
|
||||
if (onFailure != null)
|
||||
|
@ -70,9 +70,9 @@ public class ClientAppConfig {
|
||||
/*
|
||||
* Go through the properties, and return a List of ClientAppConfig structures
|
||||
*/
|
||||
public static List getClientApps(RouterContext ctx) {
|
||||
public static List<ClientAppConfig> getClientApps(RouterContext ctx) {
|
||||
Properties clientApps = getClientAppProps(ctx);
|
||||
List rv = new ArrayList(5);
|
||||
List<ClientAppConfig> rv = new ArrayList(8);
|
||||
int i = 0;
|
||||
while (true) {
|
||||
String className = clientApps.getProperty(PREFIX + i + ".main");
|
||||
|
@ -77,7 +77,7 @@ public class CommSystemFacadeImpl extends CommSystemFacade {
|
||||
public boolean haveHighOutboundCapacity() { return (_manager == null ? false : _manager.haveHighOutboundCapacity()); }
|
||||
|
||||
/**
|
||||
* Framed average clock skew of connected peers in seconds, or the clock offset if we cannot answer.
|
||||
* @return Framed average clock skew of connected peers in seconds, or the clock offset if we cannot answer.
|
||||
* Average is calculated over the middle "percentToInclude" peers.
|
||||
*/
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user