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

Improve collator node pings and collation manager stats

This commit is contained in:
SpyCheese 2024-11-28 14:13:49 +03:00
parent 5fae8db7a0
commit 923f1cd69b
8 changed files with 66 additions and 7 deletions

View file

@ -65,6 +65,8 @@ class CollationManager : public td::actor::Actor {
td::Timestamp ping_at = td::Timestamp::now();
bool sent_ping = false;
size_t active_cnt = 0;
td::Timestamp last_ping_at = td::Timestamp::never();
td::Status last_ping_status = td::Status::Error("not pinged");
};
std::map<adnl::AdnlNodeIdShort, CollatorInfo> collators_;