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