mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Improve handling sessino stats file
This commit is contained in:
parent
e6984e4799
commit
ca1093d9ba
2 changed files with 63 additions and 73 deletions
|
@ -793,6 +793,14 @@ class ValidatorManagerImpl : public ValidatorManager {
|
|||
|
||||
std::map<BlockSeqno, td::Ref<PersistentStateDescription>> persistent_state_descriptions_;
|
||||
std::map<BlockIdExt, td::Ref<PersistentStateDescription>> persistent_state_blocks_;
|
||||
|
||||
bool session_stats_enabled_ = false;
|
||||
std::string session_stats_filename_;
|
||||
td::FileFd session_stats_fd_;
|
||||
|
||||
void init_session_stats();
|
||||
template<typename T>
|
||||
void write_session_stats(const T &obj);
|
||||
};
|
||||
|
||||
} // namespace validator
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue