Example #1
0
 public BestChainFoundEventHandler(IIrreversibleBlockDiscoveryService irreversibleBlockDiscoveryService,
                                   ITaskQueueManager taskQueueManager, IBlockchainService blockchainService)
 {
     _irreversibleBlockDiscoveryService = irreversibleBlockDiscoveryService;
     _taskQueueManager  = taskQueueManager;
     _blockchainService = blockchainService;
 }
        public IrreversibleBlockDiscoveryServiceTests()
        {
            _smartContractAddressService       = GetRequiredService <ISmartContractAddressService>();
            _blockchainService                 = GetRequiredService <IBlockchainService>();
            _irreversibleBlockDiscoveryService = GetRequiredService <IIrreversibleBlockDiscoveryService>();
            _kernelTestHelper = GetRequiredService <KernelTestHelper>();

            _smartContractAddressService.SetAddress(ConsensusSmartContractAddressNameProvider.Name, _consensusAddress);
        }
 public IrreversibleBlockDiscoveryServiceTests()
 {
     _irreversibleBlockDiscoveryService = GetRequiredService <IIrreversibleBlockDiscoveryService>();
     _chainService = GetRequiredService <IBlockchainService>();
 }