forked from I2P_Developers/i2p.i2p
increase rekey probability
This commit is contained in:
@ -112,9 +112,9 @@ class LoadRouterInfoJob extends JobImpl {
|
||||
boolean sigTypeChanged = stype != cstype;
|
||||
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 20 to ~3 (i.e. increase probability) in future release
|
||||
if (getContext().random().nextInt(20) > 0) {
|
||||
// Give a 15% chance of rekeying for each restart
|
||||
// TODO reduce to ~3 (i.e. increase probability) in future release
|
||||
if (getContext().random().nextInt(7) > 0) {
|
||||
sigTypeChanged = false;
|
||||
if (_log.shouldWarn())
|
||||
_log.warn("Deferring RI rekey from " + stype + " to " + cstype);
|
||||
|
Reference in New Issue
Block a user