MCPcopy Create free account
hub / github.com/PurpleI2P/i2pd / IsSSU2PeerTesting

Method IsSSU2PeerTesting

libi2pd/RouterInfo.cpp:1048–1053  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1046 }
1047
1048 bool RouterInfo::IsSSU2PeerTesting (bool v4) const
1049 {
1050 if (!(m_SupportedTransports & (v4 ? eSSU2V4 : eSSU2V6))) return false;
1051 auto addr = (*GetAddresses ())[v4 ? eSSU2V4Idx : eSSU2V6Idx];
1052 return addr && addr->IsPeerTesting () && addr->IsReachableSSU ();
1053 }
1054
1055 bool RouterInfo::IsSSU2Introducer (bool v4) const
1056 {

Callers 4

SSU2SessionMethod · 0.80
HandlePeerTestMethod · 0.80

Calls 2

IsPeerTestingMethod · 0.80
IsReachableSSUMethod · 0.80

Tested by

no test coverage detected