don't request relay tag for every session if we have enough introducers

This commit is contained in:
orignal 2024-06-08 19:28:05 -04:00
parent 4178ac8eac
commit 0b97b4294c
2 changed files with 9 additions and 4 deletions

View file

@ -72,6 +72,7 @@ namespace transport
bool IsSupported (const boost::asio::ip::address& addr) const;
uint16_t GetPort (bool v4) const;
std::mt19937& GetRng () { return m_Rng; }
bool IsMaxNumIntroducers (bool v4) const { return (v4 ? m_Introducers.size () : m_IntroducersV6.size ()) >= SSU2_MAX_NUM_INTRODUCERS; }
bool IsSyncClockFromPeers () const { return m_IsSyncClockFromPeers; };
void AdjustTimeOffset (int64_t offset, std::shared_ptr<const i2p::data::IdentityEx> from);