mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Log validator session stats to file
This commit is contained in:
parent
17c561c4db
commit
b3e6819f3f
17 changed files with 137 additions and 18 deletions
|
@ -201,6 +201,7 @@ class ValidatorEngine : public td::actor::Actor {
|
|||
bool started_keyring_ = false;
|
||||
bool started_ = false;
|
||||
ton::BlockSeqno truncate_seqno_{0};
|
||||
std::string session_logs_file_;
|
||||
|
||||
std::set<ton::CatchainSeqno> unsafe_catchains_;
|
||||
std::map<ton::BlockSeqno, std::pair<ton::CatchainSeqno, td::uint32>> unsafe_catchain_rotations_;
|
||||
|
@ -243,6 +244,9 @@ class ValidatorEngine : public td::actor::Actor {
|
|||
void set_truncate_seqno(ton::BlockSeqno seqno) {
|
||||
truncate_seqno_ = seqno;
|
||||
}
|
||||
void set_session_logs_file(std::string f) {
|
||||
session_logs_file_ = std::move(f);
|
||||
}
|
||||
void add_ip(td::IPAddress addr) {
|
||||
addrs_.push_back(addr);
|
||||
}
|
||||
|
@ -250,7 +254,6 @@ class ValidatorEngine : public td::actor::Actor {
|
|||
keys_[key.compute_short_id()] = key;
|
||||
}
|
||||
void start_up() override;
|
||||
void got_result();
|
||||
ValidatorEngine() {
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue