static async void Startup() { if (Config.Load() == false) { Logger.Log("Config 파일이 손상되어 실행 할 수 없습니다."); Logger.Log("파일을 확인 하고 다시 실행 해 주세요."); System.Console.ReadLine(); return; } OtpChecker.Init(); if (await RestartQtumWallet() == false) { System.Console.ReadLine(); return; } if (PasswordManager.RegisterPassword() == false) { System.Console.ReadLine(); return; } UserList.Load(); NewTransactionChecker.Init(); await TelegramBot.Initialize(Bot_OnMessage, Bot_OnMessage, Bot_OnReceiveError); await BroadcastStartupNotify(); await StartupAutoStaking(); }
static async void Update() { while (true) { Thread.Sleep(100); if (currentCommand != null && currentCommand.IsCompleted == false) { await currentCommand.OnUpdate(); } else { NewTransactionChecker.RefreshTransactionInfo(); BadNodeChecker.Update(); } } }