mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-06-07 11:01:42 +00:00
NetDB: Note RI store successful in profile when we skip verification
This commit is contained in:
@@ -80,11 +80,15 @@ class FloodfillStoreJob extends StoreJob {
|
||||
DatabaseEntry data = _state.getData();
|
||||
final int type = data.getType();
|
||||
final boolean isRouterInfo = type == DatabaseEntry.KEY_TYPE_ROUTERINFO;
|
||||
// we should always have exactly one successful entry
|
||||
Hash sentTo = _state.getSuccessful();
|
||||
// default false since 0.9.7.1
|
||||
// verify for a while after startup until we've vetted the floodfills
|
||||
if (isRouterInfo && !ctx.getBooleanProperty(PROP_RI_VERIFY) &&
|
||||
ctx.router().getUptime() > RI_VERIFY_STARTUP_TIME) {
|
||||
_facade.routerInfoPublishSuccessful();
|
||||
if (sentTo != null)
|
||||
ctx.profileManager().dbStoreSuccessful(sentTo);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -96,8 +100,6 @@ class FloodfillStoreJob extends StoreJob {
|
||||
} else {
|
||||
published = data.getDate();
|
||||
}
|
||||
// we should always have exactly one successful entry
|
||||
Hash sentTo = _state.getSuccessful();
|
||||
Hash client;
|
||||
if (type == DatabaseEntry.KEY_TYPE_ENCRYPTED_LS2) {
|
||||
// get the real client hash
|
||||
|
||||
Reference in New Issue
Block a user