Пример #1
0
        public ChainHeadInfoProvider(IChainHeadSpecProvider specProvider, IBlockTree blockTree, IAccountStateProvider stateProvider)
        {
            SpecProvider         = specProvider;
            AccountStateProvider = stateProvider;

            blockTree.BlockAddedToMain += OnHeadChanged;
        }
Пример #2
0
 public FeeTooLowFilter(IChainHeadInfoProvider headInfo, IAccountStateProvider accountStateProvider, TxDistinctSortedPool txs, ILogger logger)
 {
     _specProvider = headInfo.SpecProvider;
     _headInfo     = headInfo;
     _accounts     = accountStateProvider;
     _txs          = txs;
     _logger       = logger;
 }
Пример #3
0
 public ReorgTxPool(
     ITxStorage txStorage,
     IEthereumEcdsa ecdsa,
     IChainHeadSpecProvider specProvider,
     ITxPoolConfig txPoolConfig,
     IReadOnlyStateProvider stateProvider,
     ITxValidator validator,
     ILogManager?logManager,
     IComparer <Transaction>?comparer = null)
     : base(txStorage, ecdsa, specProvider, txPoolConfig, stateProvider, validator, logManager, comparer)
 {
 }
Пример #4
0
 public FilteredTxPool(
     ITxStorage txStorage,
     IEthereumEcdsa ecdsa,
     IChainHeadSpecProvider specProvider,
     ITxPoolConfig txPoolConfig,
     IReadOnlyStateProvider stateProvider,
     ITxValidator txValidator,
     ILogManager logManager,
     IComparer <Transaction> comparer = null,
     ITxPoolFilter txPoolFilter       = null)
     : base(txStorage, ecdsa, specProvider, txPoolConfig, stateProvider, txValidator, logManager, comparer)
 {
     _txPoolFilter = txPoolFilter;
 }
Пример #5
0
 public MalformedTxFilter(IChainHeadSpecProvider specProvider, ITxValidator txValidator, ILogger logger)
 {
     _txValidator  = txValidator;
     _specProvider = specProvider;
     _logger       = logger;
 }
 public DeployedCodeFilter(IChainHeadSpecProvider specProvider, IAccountStateProvider stateProvider)
 {
     _specProvider  = specProvider;
     _stateProvider = stateProvider;
 }
Пример #7
0
 public ChainHeadInfoProvider(IChainHeadSpecProvider specProvider, IBlockFinder blockFinder, IReadOnlyStateProvider stateProvider)
 {
     SpecProvider          = specProvider;
     ReadOnlyStateProvider = stateProvider;
     _blockFinder          = blockFinder;
 }