Добавить периодический sync блокчейнов каждые 12 часов

This commit is contained in:
AidarKC
2026-06-25 17:58:07 +04:00
parent 1f8b20a7d1
commit 84e0f039cb
11 changed files with 690 additions and 4 deletions
@@ -6,6 +6,7 @@ import org.eclipse.jetty.websocket.server.config.JettyWebSocketServletContainerI
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import server.debug.DebugApiConfigurator;
import server.sync.PeriodicBlockchainSyncService;
import server.sync.SyncServersBootstrapService;
import utils.config.AppConfig;
@@ -56,6 +57,11 @@ public final class WsServer {
// ============================================================
SyncServersBootstrapService.refreshFromSolanaOrLog();
// ============================================================
// 1.2) Плановый межсерверный sync блокчейнов
// ============================================================
PeriodicBlockchainSyncService.startOrLog();
// ============================================================
// 2) Запуск Jetty WS
// ============================================================