MCPcopy Create free account
hub / github.com/TelegramMessenger/cocoon / send_connected

Method send_connected

runners/proxy/ProxyInboundClientConnection.cpp:93–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93void ProxyInboundClientConnection::send_connected(ton::tl_object_ptr<cocoon_api::client_ProxyConnectionAuth> auth,
94 td::Promise<td::BufferSlice> promise) {
95 state_ = State::Auth;
96 auto params = ton::create_tl_object<cocoon_api::proxy_params>(
97 1 | (proto_version_ > 0 ? 2 : 0), runner()->public_key(), runner()->owner_address().rserialize(true),
98 runner()->cur_sc_address().rserialize(true), runner()->is_test(), proto_version_);
99 promise.set_value(cocoon::create_serialize_tl_object<cocoon_api::client_connectedToProxy>(
100 std::move(params), client_sc_address().rserialize(true), std::move(auth),
101 client_info_ ? client_info_->signed_payment() : ton::create_tl_object<cocoon_api::proxy_signedPaymentEmpty>()));
102}
103
104block::StdAddress ProxyInboundClientConnection::client_sc_address() const {
105 if (client_info_) {

Callers

nothing calls this directly

Calls 3

cur_sc_addressMethod · 0.80
is_testMethod · 0.45
signed_paymentMethod · 0.45

Tested by

no test coverage detected