| 91 | } |
| 92 | |
| 93 | void 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 | |
| 104 | block::StdAddress ProxyInboundClientConnection::client_sc_address() const { |
| 105 | if (client_info_) { |
nothing calls this directly
no test coverage detected