| 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 | { |
no test coverage detected