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

Skip to content
Snippets Groups Projects
Commit 9d054242 authored by zzz's avatar zzz
Browse files

Router: Reduce rekey probability from 10% to 5%

parent 157d494d
No related branches found
No related tags found
No related merge requests found
......@@ -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 = 8;
public final static long BUILD = 9;
/** for example "-test" */
public final static String EXTRA = "-rc";
......
......@@ -113,8 +113,8 @@ class LoadRouterInfoJob extends JobImpl {
if (sigTypeChanged && getContext().getProperty(CreateRouterInfoJob.PROP_ROUTER_SIGTYPE) == null) {
// Not explicitly configured, and default has changed
// Give a 10% chance of rekeying for each restart
// TODO reduce from 10 to ~3 (i.e. increase probability) in future release
if (getContext().random().nextInt(10) > 0) {
// TODO reduce from 20 to ~3 (i.e. increase probability) in future release
if (getContext().random().nextInt(20) > 0) {
sigTypeChanged = false;
if (_log.shouldWarn())
_log.warn("Deferring RI rekey from " + stype + " to " + cstype);
......
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