Exemplo n.º 1
0
        public OSTestHelper(IOsBlockchainNodeContextService osBlockchainNodeContextService,
                            IAccountService accountService,
                            IMinerService minerService,
                            IBlockchainService blockchainService,
                            ITxHub txHub,
                            ISmartContractAddressService smartContractAddressService,
                            IBlockAttachService blockAttachService,
                            IStaticChainInformationProvider staticChainInformationProvider,
                            ITransactionResultService transactionResultService,
                            IOptionsSnapshot <ChainOptions> chainOptions)
        {
            _chainOptions = chainOptions.Value;
            _osBlockchainNodeContextService = osBlockchainNodeContextService;
            _accountService              = accountService;
            _minerService                = minerService;
            _blockchainService           = blockchainService;
            _smartContractAddressService = smartContractAddressService;
            _blockAttachService          = blockAttachService;
            _txHub = txHub;
            _staticChainInformationProvider = staticChainInformationProvider;
            _transactionResultService       = transactionResultService;

            BestBranchBlockList     = new List <Block>();
            ForkBranchBlockList     = new List <Block>();
            UnlinkedBranchBlockList = new List <Block>();
        }
 public MiningWithTransactionsBenchmarkBase()
 {
     TransactionPoolService          = GetRequiredService <ITransactionPoolService>();
     _osBlockchainNodeContextService = GetRequiredService <IOsBlockchainNodeContextService>();
     _accountService              = GetRequiredService <IAccountService>();
     BlockchainService            = GetRequiredService <IBlockchainService>();
     _smartContractAddressService = GetRequiredService <ISmartContractAddressService>();
 }
Exemplo n.º 3
0
 public ParallelTestHelper(IOsBlockchainNodeContextService osBlockchainNodeContextService,
                           IAccountService accountService,
                           IMinerService minerService,
                           IBlockchainService blockchainService,
                           ITxHub txHub,
                           ISmartContractAddressService smartContractAddressService,
                           IBlockAttachService blockAttachService,
                           IStaticChainInformationProvider staticChainInformationProvider,
                           ITransactionResultService transactionResultService,
                           IOptionsSnapshot <ChainOptions> chainOptions) : base(osBlockchainNodeContextService, accountService,
                                                                                minerService, blockchainService, txHub, smartContractAddressService, blockAttachService,
                                                                                staticChainInformationProvider, transactionResultService, chainOptions)
 {
     _accountService = accountService;
     _staticChainInformationProvider = staticChainInformationProvider;
 }