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

Method GetLeaseSet

libi2pd/Destination.cpp:237–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235 }
236
237 std::shared_ptr<const i2p::data::LocalLeaseSet> LeaseSetDestination::GetLeaseSet ()
238 {
239 if (!m_Pool) return nullptr;
240 if (!m_LeaseSet)
241 UpdateLeaseSet ();
242 auto ls = GetLeaseSetMt ();
243 return (ls && ls->GetInnerLeaseSet ()) ? ls->GetInnerLeaseSet () : ls; // always non-encrypted
244 }
245
246 std::shared_ptr<const i2p::data::LocalLeaseSet> LeaseSetDestination::GetLeaseSetMt ()
247 {

Callers 2

CreatePayloadMethod · 0.45
CreateGarlicPayloadMethod · 0.45

Calls 1

GetInnerLeaseSetMethod · 0.45

Tested by

no test coverage detected