mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Log number of LS queries by type (#891)
Co-authored-by: SpyCheese <mikle98@yandex.ru>
This commit is contained in:
parent
c38b2928ec
commit
e723213d5c
6 changed files with 73 additions and 0 deletions
|
@ -178,6 +178,9 @@ class ValidatorManager : public ValidatorManagerInterface {
|
|||
virtual void get_block_by_seqno_from_db_for_litequery(AccountIdPrefixFull account, BlockSeqno seqno,
|
||||
td::Promise<ConstBlockHandle> promise) = 0;
|
||||
|
||||
virtual void add_lite_query_stats(int lite_query_id) {
|
||||
}
|
||||
|
||||
static bool is_persistent_state(UnixTime ts, UnixTime prev_ts) {
|
||||
return ts / (1 << 17) != prev_ts / (1 << 17);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue