public IrreversibleBlockHeightUnacceptableLogEventProcessor(
            ITransactionPackingOptionProvider transactionPackingOptionProvider,
            ISmartContractAddressService smartContractAddressService)
        {
            _transactionPackingOptionProvider = transactionPackingOptionProvider;
            _smartContractAddressService      = smartContractAddressService;

            Logger = NullLogger <IrreversibleBlockHeightUnacceptableLogEventProcessor> .Instance;
        }
Beispiel #2
0
 public MinerServiceTests()
 {
     _transactionPoolService           = GetRequiredService <ITransactionPoolService>();
     _blockTransactionLimitProvider    = GetRequiredService <IBlockTransactionLimitProvider>();
     _transactionPackingOptionProvider = GetRequiredService <ITransactionPackingOptionProvider>();
     _minerService        = GetRequiredService <IMinerService>();
     _blockStateSetManger = GetRequiredService <IBlockStateSetManger>();
     _blockchainService   = GetRequiredService <IBlockchainService>();
     _kernelTestHelper    = GetRequiredService <KernelTestHelper>();
 }
Beispiel #3
0
        public ProposalApprovalTransactionGenerator(IProposalService proposalService,
                                                    ISmartContractAddressService smartContractAddressService,
                                                    ITransactionPackingOptionProvider transactionPackingOptionProvider)
        {
            _proposalService                  = proposalService;
            _smartContractAddressService      = smartContractAddressService;
            _transactionPackingOptionProvider = transactionPackingOptionProvider;

            Logger = NullLogger <ProposalApprovalTransactionGenerator> .Instance;
        }
        public MinerService(IMiningService miningService,
                            IBlockTransactionLimitProvider blockTransactionLimitProvider,
                            ITransactionPackingOptionProvider transactionPackingOptionProvider,
                            ITransactionPoolService transactionPoolService)
        {
            _miningService = miningService;
            _blockTransactionLimitProvider    = blockTransactionLimitProvider;
            _transactionPackingOptionProvider = transactionPackingOptionProvider;
            _transactionPoolService           = transactionPoolService;

            Logger = NullLogger <MinerService> .Instance;
        }
Beispiel #5
0
        public ConsensusValidationProvider(IConsensusService consensusService,
                                           ITransactionPackingOptionProvider transactionPackingOptionProvider,
                                           IBlockchainService blockchainService,
                                           IConsensusExtraDataExtractor consensusExtraDataExtractor,
                                           IEnumerable <ISystemTransactionGenerator> systemTransactionGenerators)
        {
            _consensusService = consensusService;
            _transactionPackingOptionProvider = transactionPackingOptionProvider;
            _blockchainService           = blockchainService;
            _consensusExtraDataExtractor = consensusExtraDataExtractor;
            _systemTransactionCount      = systemTransactionGenerators.Count();

            Logger = NullLogger <ConsensusValidationProvider> .Instance;
        }
 public CrossChainBlockExtraDataProvider(ICrossChainIndexingDataService crossChainIndexingDataService,
                                         ITransactionPackingOptionProvider transactionPackingOptionProvider)
 {
     _crossChainIndexingDataService    = crossChainIndexingDataService;
     _transactionPackingOptionProvider = transactionPackingOptionProvider;
 }
 public CrossChainBlockExtraDataProviderTest()
 {
     _crossChainBlockExtraDataProvider = GetRequiredService <IBlockExtraDataProvider>();
     _crossChainTestHelper             = GetRequiredService <CrossChainTestHelper>();
     _transactionPackingOptionProvider = GetRequiredService <ITransactionPackingOptionProvider>();
 }
 public TransactionPackingOptionProviderTests()
 {
     _transactionPackingOptionProvider = GetRequiredService <ITransactionPackingOptionProvider>();
     _kernelTestHelper    = GetRequiredService <KernelTestHelper>();
     _blockStateSetManger = GetRequiredService <IBlockStateSetManger>();
 }
Beispiel #9
0
 public ProposalApprovalTransactionGeneratorTests()
 {
     _proposalApprovalTransactionGenerator = GetRequiredService <ISystemTransactionGenerator>();
     _transactionPackingOptionProvider     = GetRequiredService <ITransactionPackingOptionProvider>();
     _proposalTestHelper = GetRequiredService <ProposalTestHelper>();
 }