Example #1
0
 public BlockAcceptedEventHandler(INetworkService networkService, ISyncStateService syncStateService,
                                  ITaskQueueManager taskQueueManager)
 {
     _taskQueueManager = taskQueueManager;
     _networkService   = networkService;
     _syncStateService = syncStateService;
 }
 public NewIrreversibleBlockFoundEventHandler(ITaskQueueManager taskQueueManager,
                                              IBlockchainStateMergingService blockchainStateMergingService)
 {
     _taskQueueManager = taskQueueManager;
     _blockchainStateMergingService = blockchainStateMergingService;
     Logger = NullLogger <NewIrreversibleBlockFoundEventHandler> .Instance;
 }
Example #3
0
        public BlockSyncQueueService(IBlockSyncStateProvider blockSyncStateProvider, ITaskQueueManager taskQueueManager)
        {
            Logger = NullLogger <BlockSyncQueueService> .Instance;

            _blockSyncStateProvider = blockSyncStateProvider;
            _taskQueueManager       = taskQueueManager;
        }
Example #4
0
 public BestChainFoundEventHandler(IIrreversibleBlockDiscoveryService irreversibleBlockDiscoveryService,
                                   ITaskQueueManager taskQueueManager, IBlockchainService blockchainService)
 {
     _irreversibleBlockDiscoveryService = irreversibleBlockDiscoveryService;
     _taskQueueManager  = taskQueueManager;
     _blockchainService = blockchainService;
 }
 public BlockMiningEventHandler(IMinerService minerService, IBlockAttachService blockAttachService,
                                ITaskQueueManager taskQueueManager)
 {
     _minerService       = minerService;
     _blockAttachService = blockAttachService;
     _taskQueueManager   = taskQueueManager;
     Logger = NullLogger <BlockMiningEventHandler> .Instance;
 }
 public DPoSAnnouncementReceivedEventDataHandler(ITaskQueueManager taskQueueManager,
                                                 IAEDPoSLastLastIrreversibleBlockDiscoveryService idpoSLastLastIrreversibleBlockDiscoveryService,
                                                 IBlockchainService blockchainService)
 {
     _taskQueueManager = taskQueueManager;
     _idpoSLastLastIrreversibleBlockDiscoveryService = idpoSLastLastIrreversibleBlockDiscoveryService;
     _blockchainService = blockchainService;
 }
 public PeerConnectedEventHandler(IServiceProvider serviceProvider, ITaskQueueManager taskQueueManager,
                                  IBlockchainService blockchainService)
 {
     _taskQueueManager  = taskQueueManager;
     _blockSyncJob      = serviceProvider.GetRequiredService <BlockSyncJob>();
     _blockchainService = blockchainService;
     Logger             = NullLogger <PeerConnectedEventHandler> .Instance;
 }
Example #8
0
        public IrreversibleBlockFoundLogEventProcessor(ISmartContractAddressService smartContractAddressService,
                                                       IBlockchainService blockchainService, ITaskQueueManager taskQueueManager)
        {
            _smartContractAddressService = smartContractAddressService;
            _blockchainService           = blockchainService;
            _taskQueueManager            = taskQueueManager;

            Logger = NullLogger <IrreversibleBlockFoundLogEventProcessor> .Instance;
        }
Example #9
0
        public NetworkService(IPeerPool peerPool, ITaskQueueManager taskQueueManager, IAElfNetworkServer networkServer,
                              IKnownBlockCacheProvider knownBlockCacheProvider)
        {
            _peerPool                = peerPool;
            _taskQueueManager        = taskQueueManager;
            _networkServer           = networkServer;
            _knownBlockCacheProvider = knownBlockCacheProvider;

            Logger = NullLogger <NetworkService> .Instance;
        }
        public IrreversibleBlockFoundLogEventHandler(ISmartContractAddressService smartContractAddressService,
                                                     IBlockchainService blockchainService, ITaskQueueManager taskQueueManager, ITransactionPackingService transactionPackingService)
        {
            _smartContractAddressService = smartContractAddressService;
            _blockchainService           = blockchainService;
            _taskQueueManager            = taskQueueManager;
            _transactionPackingService   = transactionPackingService;

            Logger = NullLogger <IrreversibleBlockFoundLogEventHandler> .Instance;
        }
Example #11
0
 public ConsensusRequestMiningEventHandler(IMinerService minerService, IBlockAttachService blockAttachService,
                                           ITaskQueueManager taskQueueManager, IBlockchainService blockchainService)
 {
     _minerService       = minerService;
     _blockAttachService = blockAttachService;
     _taskQueueManager   = taskQueueManager;
     _blockchainService  = blockchainService;
     Logger        = NullLogger <ConsensusRequestMiningEventHandler> .Instance;
     LocalEventBus = NullLocalEventBus.Instance;
 }
Example #12
0
 public NewIrreversibleBlockFoundEventHandler(ITaskQueueManager taskQueueManager,
                                              IBlockchainStateService blockchainStateService,
                                              IBlockchainService blockchainService,
                                              ITransactionBlockIndexService transactionBlockIndexService)
 {
     _taskQueueManager             = taskQueueManager;
     _blockchainStateService       = blockchainStateService;
     _blockchainService            = blockchainService;
     _transactionBlockIndexService = transactionBlockIndexService;
     Logger = NullLogger <NewIrreversibleBlockFoundEventHandler> .Instance;
 }
Example #13
0
        public IrreversibleBlockFoundLogEventProcessor(ISmartContractAddressService smartContractAddressService,
                                                       IBlockchainService blockchainService, ITaskQueueManager taskQueueManager,
                                                       IOptionsMonitor <TransactionPackingOptions> transactionPackingOptions)
        {
            _smartContractAddressService = smartContractAddressService;
            _blockchainService           = blockchainService;
            _taskQueueManager            = taskQueueManager;
            _transactionPackingOptions   = transactionPackingOptions.CurrentValue;

            Logger = NullLogger <IrreversibleBlockFoundLogEventProcessor> .Instance;
        }
        public ConsensusRequestMiningEventHandler(IServiceProvider serviceProvider)
        {
            _minerService       = serviceProvider.GetService <IMinerService>();
            _blockAttachService = serviceProvider.GetService <IBlockAttachService>();
            _taskQueueManager   = serviceProvider.GetService <ITaskQueueManager>();
            _blockchainService  = serviceProvider.GetService <IBlockchainService>();
            _consensusService   = serviceProvider.GetService <IConsensusService>();

            Logger        = NullLogger <ConsensusRequestMiningEventHandler> .Instance;
            LocalEventBus = NullLocalEventBus.Instance;
        }
Example #15
0
        public BestChainFoundEventHandler(
            IIrreversibleBlockRelatedEventsDiscoveryService irreversibleBlockRelatedEventsDiscoveryService,
            ITaskQueueManager taskQueueManager, IBlockchainService blockchainService,
            ITransactionInclusivenessProvider transactionInclusivenessProvider)
        {
            _irreversibleBlockRelatedEventsDiscoveryService = irreversibleBlockRelatedEventsDiscoveryService;
            _taskQueueManager  = taskQueueManager;
            _blockchainService = blockchainService;
            _transactionInclusivenessProvider = transactionInclusivenessProvider;

            Logger = NullLogger <BestChainFoundEventHandler> .Instance;
        }
Example #16
0
        public NetworkService(IPeerPool peerPool, ITaskQueueManager taskQueueManager, IAElfNetworkServer networkServer,
                              IBlackListedPeerProvider blackListedPeerProvider,
                              IBroadcastPrivilegedPubkeyListProvider broadcastPrivilegedPubkeyListProvider)
        {
            _peerPool         = peerPool;
            _taskQueueManager = taskQueueManager;
            _networkServer    = networkServer;
            _broadcastPrivilegedPubkeyListProvider = broadcastPrivilegedPubkeyListProvider;
            _blackListedPeerProvider = blackListedPeerProvider;

            Logger = NullLogger <NetworkService> .Instance;
        }
Example #17
0
        public BlockSyncJob(IBlockAttachService blockAttachService,
                            IOptionsSnapshot <NetworkOptions> networkOptions,
                            IBlockchainService blockchainService,
                            INetworkService networkService,
                            ITaskQueueManager taskQueueManager)
        {
            Logger          = NullLogger <BlockSyncJob> .Instance;
            _networkOptions = networkOptions.Value;

            _blockchainService  = blockchainService;
            _networkService     = networkService;
            _blockAttachService = blockAttachService;
            _taskQueueManager   = taskQueueManager;
        }
Example #18
0
 public NewIrreversibleBlockFoundEventHandler(ITaskQueueManager taskQueueManager,
                                              IBlockchainStateService blockchainStateService,
                                              IBlockchainService blockchainService,
                                              ITransactionBlockIndexService transactionBlockIndexService,
                                              IChainBlockLinkService chainBlockLinkService,
                                              ISmartContractExecutiveService smartContractExecutiveService)
 {
     _taskQueueManager              = taskQueueManager;
     _blockchainStateService        = blockchainStateService;
     _blockchainService             = blockchainService;
     _transactionBlockIndexService  = transactionBlockIndexService;
     _chainBlockLinkService         = chainBlockLinkService;
     _smartContractExecutiveService = smartContractExecutiveService;
     Logger        = NullLogger <NewIrreversibleBlockFoundEventHandler> .Instance;
     LocalEventBus = NullLocalEventBus.Instance;
 }
Example #19
0
 public TaskQueueStatusAppService(ITaskQueueManager taskQueueManager,
                                  IObjectMapper <ChainApplicationWebAppAElfModule> objectMapper)
 {
     _taskQueueManager = taskQueueManager;
     _objectMapper     = objectMapper;
 }
 public TaskQueueStatusAppService(ITaskQueueManager taskQueueManager)
 {
     _taskQueueManager = taskQueueManager;
 }
Example #21
0
 public TaskQueueManagerTests()
 {
     _taskQueueManager = GetRequiredService <ITaskQueueManager>();
 }
Example #22
0
 public static void Enqueue(this ITaskQueueManager taskQueueManager, Func <Task> task, string name = null)
 {
     taskQueueManager.GetQueue(name).Enqueue(task);
 }
 public ParallelExecutionInterestedEventsHandler(IResourceExtractionService resourceExtractionService,
                                                 ITaskQueueManager taskQueueManager)
 {
     _resourceExtractionService = resourceExtractionService;
     _taskQueueManager          = taskQueueManager;
 }
Example #24
0
 public BlockSyncJobTest()
 {
     _blockChainService = GetRequiredService <IBlockchainService>();
     _job = GetRequiredService <BlockSyncJob>();
     _taskQueueManager = GetRequiredService <ITaskQueueManager>();
 }