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:
parent
69cee95abb
commit
33a079962f
16 changed files with 117 additions and 37 deletions
|
|
@ -374,6 +374,7 @@ void LastBlock::on_sync_error(td::Status status) {
|
|||
promise.set_error(status.clone());
|
||||
}
|
||||
promises_.clear();
|
||||
client_.force_change_liteserver();
|
||||
}
|
||||
void LastBlock::on_fatal_error(td::Status status) {
|
||||
VLOG(last_block) << "sync: fatal error " << status;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue