1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00

Tonlib: change liteservers on query timeout or connection close

This commit is contained in:
SpyCheese 2022-10-04 15:12:13 +03:00
parent 69cee95abb
commit 33a079962f
16 changed files with 117 additions and 37 deletions

View file

@ -37,6 +37,7 @@ class DNSResolver : public td::actor::Actor {
void resolve(std::string host, td::Promise<ton::adnl::AdnlNodeIdShort> promise);
private:
void sync();
void save_to_cache(std::string host, ton::adnl::AdnlNodeIdShort id);
td::actor::ActorId<TonlibClient> tonlib_client_;