예제 #1
0
        public IrreversibleBlockHeightUnacceptableLogEventHandler(
            ITransactionPackingService transactionPackingService,
            ISmartContractAddressService smartContractAddressService)
        {
            _transactionPackingService   = transactionPackingService;
            _smartContractAddressService = smartContractAddressService;

            Logger = NullLogger <IrreversibleBlockHeightUnacceptableLogEventHandler> .Instance;
        }
예제 #2
0
        public ProposalApprovalTransactionGenerator(IProposalService proposalService,
                                                    ISmartContractAddressService smartContractAddressService, ITransactionPackingService transactionPackingService)
        {
            _proposalService             = proposalService;
            _smartContractAddressService = smartContractAddressService;
            _transactionPackingService   = transactionPackingService;

            Logger = NullLogger <ProposalApprovalTransactionGenerator> .Instance;
        }
예제 #3
0
 public ConsensusValidationProvider(IServiceProvider serviceProvider)
 {
     _consensusService            = serviceProvider.GetService <IConsensusService>();
     _transactionPackingService   = serviceProvider.GetService <ITransactionPackingService>();
     _blockchainService           = serviceProvider.GetService <IBlockchainService>();
     _consensusExtraDataExtractor = serviceProvider.GetService <IConsensusExtraDataExtractor>();
     _systemTransactionCount      = serviceProvider.GetServices <ISystemTransactionGenerator>().Count();
     Logger = NullLogger <ConsensusValidationProvider> .Instance;
 }
        public IrreversibleBlockFoundLogEventHandler(ISmartContractAddressService smartContractAddressService,
                                                     IBlockchainService blockchainService, ITaskQueueManager taskQueueManager, ITransactionPackingService transactionPackingService)
        {
            _smartContractAddressService = smartContractAddressService;
            _blockchainService           = blockchainService;
            _taskQueueManager            = taskQueueManager;
            _transactionPackingService   = transactionPackingService;

            Logger = NullLogger <IrreversibleBlockFoundLogEventHandler> .Instance;
        }
예제 #5
0
        public MinerService(IMiningService miningService, ITxHub txHub,
                            IBlockTransactionLimitProvider blockTransactionLimitProvider,
                            ITransactionPackingService transactionPackingService)
        {
            _miningService = miningService;
            _txHub         = txHub;
            _blockTransactionLimitProvider = blockTransactionLimitProvider;
            _transactionPackingService     = transactionPackingService;

            Logger = NullLogger <MinerService> .Instance;
        }
 public CrossChainIndexingDataService(IReaderFactory readerFactory,
                                      IBlockCacheEntityConsumer blockCacheEntityConsumer,
                                      ITransactionInputForBlockMiningDataProvider transactionInputForBlockMiningDataProvider,
                                      IIrreversibleBlockStateProvider irreversibleBlockStateProvider,
                                      ITransactionPackingService transactionPackingService)
 {
     _readerFactory            = readerFactory;
     _blockCacheEntityConsumer = blockCacheEntityConsumer;
     _transactionInputForBlockMiningDataProvider = transactionInputForBlockMiningDataProvider;
     _irreversibleBlockStateProvider             = irreversibleBlockStateProvider;
     _transactionPackingService = transactionPackingService;
 }
        public ConsensusValidationProvider(IConsensusService consensusService,
                                           ITransactionPackingService transactionPackingService,
                                           IBlockchainService blockchainService,
                                           IConsensusExtraDataExtractor consensusExtraDataExtractor,
                                           IEnumerable <ISystemTransactionGenerator> systemTransactionGenerators)
        {
            _consensusService            = consensusService;
            _transactionPackingService   = transactionPackingService;
            _blockchainService           = blockchainService;
            _consensusExtraDataExtractor = consensusExtraDataExtractor;
            _systemTransactionCount      = systemTransactionGenerators.Count();

            Logger = NullLogger <ConsensusValidationProvider> .Instance;
        }
 public DonateResourceTransactionGenerator(ISmartContractAddressService smartContractAddressService,
                                           ITransactionPackingService transactionPackingService)
 {
     _smartContractAddressService = smartContractAddressService;
     _transactionPackingService   = transactionPackingService;
 }
예제 #9
0
 public ClaimFeeTransactionGenerator(ISmartContractAddressService smartContractAddressService,
                                     ITransactionPackingService transactionPackingService)
 {
     _smartContractAddressService = smartContractAddressService;
     _transactionPackingService   = transactionPackingService;
 }