* NetDB: Disable RI verifies for now

This commit is contained in:
zzz
2013-07-28 13:02:12 +00:00
parent be753d7a1a
commit 076871fe44
3 changed files with 16 additions and 1 deletions

View File

@ -1,3 +1,12 @@
2012-07-28 zzz
* Addresses: Treat RFC 4193 addresses fc00::/7 as local
* NetDB: Disable RI verifies for now
2012-07-26 zzz
* Transports:
- Fix IPv6-only option 2nd try
- Treat RFC 4193 addresses fc00::/7 as local
2012-07-25 zzz
* Transports:
- Prefer IPv6 by default

View File

@ -18,7 +18,7 @@ public class RouterVersion {
/** deprecated */
public final static String ID = "Monotone";
public final static String VERSION = CoreVersion.VERSION;
public final static long BUILD = 12;
public final static long BUILD = 13;
/** for example "-test" */
public final static String EXTRA = "";

View File

@ -24,6 +24,8 @@ import net.i2p.util.Log;
class FloodfillStoreJob extends StoreJob {
private final FloodfillNetworkDatabaseFacade _facade;
private static final String PROP_RI_VERIFY = "router.verifyRouterInfoStore";
/**
* Send a data structure to the floodfills
*
@ -64,6 +66,10 @@ class FloodfillStoreJob extends StoreJob {
// it finds something stamped with that time or newer.
DatabaseEntry data = _state.getData();
boolean isRouterInfo = data.getType() == DatabaseEntry.KEY_TYPE_ROUTERINFO;
// default false
if (isRouterInfo && !getContext().getBooleanProperty(PROP_RI_VERIFY))
return;
long published = data.getDate();
// we should always have exactly one successful entry