public static IBlockProcessor Create( IBlockchainProxyService web3, IVmStackErrorChecker vmStackErrorChecker, HandlerContainer handlers, FilterContainer filters = null, bool postVm = false, bool processTransactionsInParallel = true) { var transactionLogProcessor = new TransactionLogProcessor( filters?.TransactionLogFilters, handlers.TransactionLogHandler); var contractTransactionProcessor = new ContractTransactionProcessor( web3, vmStackErrorChecker, handlers.ContractHandler, handlers.TransactionHandler, handlers.TransactionVmStackHandler); var contractCreationTransactionProcessor = new ContractCreationTransactionProcessor( web3, handlers.ContractHandler, handlers.TransactionHandler); var valueTransactionProcessor = new ValueTransactionProcessor( handlers.TransactionHandler); var transactionProcessor = new TransactionProcessor( web3, contractTransactionProcessor, valueTransactionProcessor, contractCreationTransactionProcessor, transactionLogProcessor, filters?.TransactionFilters, filters?.TransactionReceiptFilters, filters?.TransactionAndReceiptFilters); if (postVm) { return new BlockVmPostProcessor( web3, handlers.BlockHandler, transactionProcessor) { ProcessTransactionsInParallel = processTransactionsInParallel } } ; transactionProcessor.ContractTransactionProcessor.EnabledVmProcessing = false; return(new BlockProcessor( web3, handlers.BlockHandler, transactionProcessor, filters?.BlockFilters) { ProcessTransactionsInParallel = processTransactionsInParallel }); } }
public static IBlockProcessor Create(IBlockchainProxyService web3, HandlerContainer handlers, FilterContainer filters = null, bool postVm = false, bool processTransactionsInParallel = true) { return(Create(web3, new VmStackErrorCheckerWrapper(), handlers, filters, postVm, processTransactionsInParallel)); }