protected override void OnStart() { ExplorerDataTransformationService.StartedHandle.WaitOne(); ExplorerDataTransformationService.WaitTransformationCompleted(); LedgerService.StartedHandle.WaitOne(); server.Start(); }
protected override void OnStart() { ExplorerDatabaseService.StartedHandle.WaitOne(); ExplorerDataTransformationService.StartedHandle.WaitOne(); ExplorerDataTransformationService.WaitTransformationCompleted(); LedgerService.StartedHandle.WaitOne(); LedgerService.LedgerManager.SubscribeOnNewLedger(OnNewLedger); var machines = ExplorerDatabaseService.ReadDatabaseManager.GetVendingMachines(); var vendingMachines = new List <Account>(); foreach (var machine in machines) { if (LedgerService.LedgerManager.LedgerState.TryGetAccount(machine.Address, out var account)) { vendingMachines.Add(account); } } OrderBookManager.Initialize(vendingMachines, symbols); }