public AuRaBlockProcessor(
     ISpecProvider specProvider,
     IBlockValidator blockValidator,
     IRewardCalculator rewardCalculator,
     ITransactionProcessor transactionProcessor,
     ISnapshotableDb stateDb,
     ISnapshotableDb codeDb,
     IStateProvider stateProvider,
     IStorageProvider storageProvider,
     ITxPool txPool,
     IReceiptStorage receiptStorage,
     ILogManager logManager,
     IBlockTree blockTree,
     ITxPermissionFilter txFilter       = null,
     IGasLimitOverride gasLimitOverride = null)
     : base(specProvider, blockValidator, rewardCalculator, transactionProcessor, stateDb, codeDb, stateProvider, storageProvider, txPool, receiptStorage, logManager)
 {
     _blockTree        = blockTree ?? throw new ArgumentNullException(nameof(blockTree));
     _logger           = logManager?.GetClassLogger <AuRaBlockProcessor>() ?? throw new ArgumentNullException(nameof(logManager));
     _txFilter         = txFilter ?? NullTxPermissionFilter.Instance;
     _gasLimitOverride = gasLimitOverride;
 }
Beispiel #2
0
 public TxFilterTxSource(ITxSource innerSource, ITxPermissionFilter txPermissionFilter)
 {
     _innerSource        = innerSource;
     _txPermissionFilter = txPermissionFilter;
 }