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

Exporting and importing candidates using validator-engine-console; lite mode for validator group

This commit is contained in:
SpyCheese 2022-07-12 21:15:04 +03:00
parent 625516c568
commit 415ace3da9
16 changed files with 410 additions and 5 deletions

View file

@ -169,6 +169,8 @@ class ValidatorManager : public ValidatorManagerInterface {
virtual void log_validator_session_stats(BlockIdExt block_id, validatorsession::ValidatorSessionStats stats) = 0;
virtual void wait_block_candidate(BlockId block_id, td::Timestamp timeout, td::Promise<BlockCandidate> promise) = 0;
static bool is_persistent_state(UnixTime ts, UnixTime prev_ts) {
return ts / (1 << 17) != prev_ts / (1 << 17);
}