public BlockSyncServiceTests() { _blockSyncService = GetRequiredService <IBlockSyncService>(); _blockchainService = GetRequiredService <IBlockchainService>(); _networkService = GetRequiredService <INetworkService>(); _blockSyncStateProvider = GetRequiredService <IBlockSyncStateProvider>(); _blockDownloadJobStore = GetRequiredService <IBlockDownloadJobStore>(); _osTestHelper = GetRequiredService <OSTestHelper>(); }
public BlockReceivedEventHandler(IBlockSyncService blockSyncService, IBlockSyncValidationService blockSyncValidationService, IBlockchainService blockchainService, IOptionsSnapshot <BlockSyncOptions> blockSyncOptions) { _blockSyncService = blockSyncService; _blockSyncValidationService = blockSyncValidationService; _blockchainService = blockchainService; _blockSyncOptions = blockSyncOptions.Value; Logger = NullLogger <BlockReceivedEventHandler> .Instance; }