| 155 | } |
| 156 | |
| 157 | void ProxyInboundClientConnection::send_auth_success(td::Promise<td::BufferSlice> promise) { |
| 158 | state_ = State::Ok; |
| 159 | handshake_completed(); |
| 160 | runner()->sign_client_payment(*client_info_); |
| 161 | promise.set_value(cocoon::create_serialize_tl_object<cocoon_api::client_authorizationWithProxySuccess>( |
| 162 | client_info_->signed_payment(), client_info_->tokens_committed_to_db(), client_info_->tokens_max())); |
| 163 | remove_connecting_info(); |
| 164 | } |
| 165 | |
| 166 | void ProxyInboundClientConnection::send_auth_fail(td::Status error, td::Promise<td::BufferSlice> promise) { |
| 167 | promise.set_value(cocoon::create_serialize_tl_object<cocoon_api::client_authorizationWithProxyFailed>( |
nothing calls this directly
no test coverage detected