diff --git a/validator/state-serializer.cpp b/validator/state-serializer.cpp index 4ac4fc707..8e1b1b575 100644 --- a/validator/state-serializer.cpp +++ b/validator/state-serializer.cpp @@ -287,7 +287,8 @@ bool AsyncStateSerializer::need_serialize(BlockHandle handle) { if (handle->id().id.seqno == 0 || !handle->is_key_block()) { return false; } - return ValidatorManager::is_persistent_state(handle->unix_time(), last_key_block_ts_); + return ValidatorManager::is_persistent_state(handle->unix_time(), last_key_block_ts_) && + ValidatorManager::persistent_state_ttl(handle->unix_time()) > (UnixTime)td::Clocks::system(); } } // namespace validator