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

Method RequestDestination

libi2pd/Destination.cpp:748–758  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

746 }
747
748 bool LeaseSetDestination::RequestDestination (const i2p::data::IdentHash& dest, RequestComplete requestComplete)
749 {
750 if (!m_Pool || !IsReady ())
751 {
752 if (requestComplete)
753 boost::asio::post (m_Service, [requestComplete](void){requestComplete (nullptr);});
754 return false;
755 }
756 boost::asio::post (m_Service, std::bind (&LeaseSetDestination::RequestLeaseSet, shared_from_this (), dest, requestComplete, nullptr));
757 return true;
758 }
759
760 bool LeaseSetDestination::RequestDestinationWithEncryptedLeaseSet (std::shared_ptr<const i2p::data::BlindedPublicKey> dest, RequestComplete requestComplete)
761 {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected