mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 11:17:49 +02:00
Add reseed.threshold option
This commit is contained in:
parent
a03bf89190
commit
33310732a6
2 changed files with 4 additions and 1 deletions
|
@ -41,7 +41,9 @@ namespace data
|
|||
InitProfilesStorage ();
|
||||
m_Families.LoadCertificates ();
|
||||
Load ();
|
||||
if (m_RouterInfos.size () < 25) // reseed if # of router less than 50
|
||||
|
||||
uint16_t threshold; i2p::config::GetOption("reseed.threshold", threshold);
|
||||
if (m_RouterInfos.size () < threshold) // reseed if # of router less than threshold
|
||||
Reseed ();
|
||||
|
||||
m_IsRunning = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue