Skip to content

Commit

Permalink
Try dht client
Browse files Browse the repository at this point in the history
  • Loading branch information
tvorogme committed Feb 15, 2024
1 parent 2c9a9af commit b34665c
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions lite-server-daemon/adnl-lite-proxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,8 @@ class LiteProxy : public td::actor::Actor {

// Start DHT
for (auto &dht : config_.dht_ids) {
adnl::AdnlNodeIdFull local_id_full = adnl::AdnlNodeIdFull::create(keys_[dht].tl()).move_as_ok();

td::actor::send_closure(adnl_, &ton::adnl::Adnl::add_id, std::move(local_id_full), ton::adnl::AdnlAddressList{},
static_cast<td::uint8>(255));

auto D = ton::dht::Dht::create(ton::adnl::AdnlNodeIdShort{dht}, db_root_ + "/lite-proxy", dht_config,
keyring_.get(), adnl_.get());
auto D = ton::dht::Dht::create_client(ton::adnl::AdnlNodeIdShort{dht}, db_root_ + "/lite-proxy", dht_config,
keyring_.get(), adnl_.get());
D.ensure();

dht_nodes_[dht] = D.move_as_ok();
Expand Down

0 comments on commit b34665c

Please sign in to comment.