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>(); }
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; }