mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-22 00:59:08 +01:00
exclude router from tunnel build for 2.5 minutes if doesn't reply too often
This commit is contained in:
parent
ac287a896c
commit
067fb45a25
1 changed files with 2 additions and 0 deletions
|
@ -148,6 +148,8 @@ namespace data
|
||||||
{
|
{
|
||||||
m_NumTunnelsNonReplied++;
|
m_NumTunnelsNonReplied++;
|
||||||
UpdateTime ();
|
UpdateTime ();
|
||||||
|
if (m_NumTunnelsNonReplied > 2*m_NumTunnelsAgreed && m_NumTunnelsNonReplied > 3)
|
||||||
|
m_LastDeclineTime = i2p::util::GetSecondsSinceEpoch ();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool RouterProfile::IsLowPartcipationRate () const
|
bool RouterProfile::IsLowPartcipationRate () const
|
||||||
|
|
Loading…
Add table
Reference in a new issue