mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Send validator telemetry to the private overlay (#1325)
* Send validator telemetry to the private overlay * Improve rotating neighbours in overlays
This commit is contained in:
parent
52b010ff34
commit
061c82f89c
30 changed files with 426 additions and 13 deletions
|
@ -347,7 +347,12 @@ void OverlayImpl::alarm() {
|
|||
update_db_at_ = td::Timestamp::in(60.0);
|
||||
}
|
||||
|
||||
update_neighbours(0);
|
||||
if (update_neighbours_at_.is_in_past()) {
|
||||
update_neighbours(2);
|
||||
update_neighbours_at_ = td::Timestamp::in(td::Random::fast(30.0, 120.0));
|
||||
} else {
|
||||
update_neighbours(0);
|
||||
}
|
||||
alarm_timestamp() = td::Timestamp::in(1.0);
|
||||
} else {
|
||||
update_neighbours(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue