Browse Source

exclude router from tunnel build for 2.5 minutes if doesn't reply too often

static-build
orignal 2 years ago
parent
commit
067fb45a25
  1. 2
      libi2pd/Profiling.cpp

2
libi2pd/Profiling.cpp

@ -148,6 +148,8 @@ namespace data @@ -148,6 +148,8 @@ namespace data
{
m_NumTunnelsNonReplied++;
UpdateTime ();
if (m_NumTunnelsNonReplied > 2*m_NumTunnelsAgreed && m_NumTunnelsNonReplied > 3)
m_LastDeclineTime = i2p::util::GetSecondsSinceEpoch ();
}
bool RouterProfile::IsLowPartcipationRate () const

Loading…
Cancel
Save