mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Improve DHT store/load, pinging overlay peers (#840)
* Improve DHT store/load, pinging overlay peers * Fix speed limits in storage * Use keyStoreTypeDirectory in rldp-http-proxy and storage-daemon Mainly for caching synced block in tonlib. --------- Co-authored-by: SpyCheese <mikle98@yandex.ru>
This commit is contained in:
parent
c8918f0c02
commit
550c28d7db
16 changed files with 162 additions and 89 deletions
|
|
@ -143,9 +143,11 @@ class PeerManager : public td::actor::Actor {
|
|||
td::actor::ActorId<PeerManager> peer_manager_;
|
||||
ton::adnl::AdnlNodeIdShort dst_;
|
||||
};
|
||||
ton::overlay::OverlayOptions opts;
|
||||
opts.announce_self_ = !client_mode_;
|
||||
opts.frequent_dht_lookup_ = true;
|
||||
send_closure(overlays_, &ton::overlay::Overlays::create_public_overlay_ex, src_id, overlay_id_.clone(),
|
||||
std::make_unique<Callback>(actor_id(this), src_id), rules, R"({ "type": "storage" })",
|
||||
!client_mode_);
|
||||
std::make_unique<Callback>(actor_id(this), src_id), rules, R"({ "type": "storage" })", opts);
|
||||
}
|
||||
promise.set_value({});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue