Пример #1
0
        public async Task FinishInitialSync_Test()
        {
            InitialSyncFinishedEvent eventData = null;

            _localEventBus.Subscribe <InitialSyncFinishedEvent>(d =>
            {
                eventData = d;
                return(Task.CompletedTask);
            });

            await _blockchainNodeContextService.FinishInitialSyncAsync();

            eventData.ShouldNotBeNull();
        }
Пример #2
0
 /// <summary>
 /// Finalizes the sync by changing the target to -1 and launching the
 /// notifying the Kernel of this change.
 /// </summary>
 private async Task SetSyncAsFinishedAsync()
 {
     SetSyncTarget(-1);
     await _blockchainNodeContextService.FinishInitialSyncAsync();
 }