@@ -353,28 +353,29 @@ func (api *BaseAPI) pruneMode(tx kv.Tx) (*prune.Mode, error) {
353
353
// APIImpl is implementation of the EthAPI interface based on remote Db access
354
354
type APIImpl struct {
355
355
* BaseAPI
356
- ethBackend rpchelper.ApiBackend
357
- txPool txpool.TxpoolClient
358
- mining txpool.MiningClient
359
- gasCache * GasPriceCache
360
- db kv.RoDB
361
- GasCap uint64
362
- FeeCap float64
363
- ReturnDataLimit int
364
- ZkRpcUrl string
365
- PoolManagerUrl string
366
- AllowFreeTransactions bool
367
- AllowPreEIP155Transactions bool
368
- AllowUnprotectedTxs bool
369
- MaxGetProofRewindBlockCount int
370
- L1RpcUrl string
371
- DefaultGasPrice uint64
372
- MaxGasPrice uint64
373
- GasPriceFactor float64
374
- L1GasPrice L1GasPrice
375
- SubscribeLogsChannelSize int
376
- logger log.Logger
377
- VirtualCountersSmtReduction float64
356
+ ethBackend rpchelper.ApiBackend
357
+ txPool txpool.TxpoolClient
358
+ mining txpool.MiningClient
359
+ gasCache * GasPriceCache
360
+ db kv.RoDB
361
+ GasCap uint64
362
+ FeeCap float64
363
+ ReturnDataLimit int
364
+ ZkRpcUrl string
365
+ PoolManagerUrl string
366
+ AllowFreeTransactions bool
367
+ AllowPreEIP155Transactions bool
368
+ AllowUnprotectedTxs bool
369
+ MaxGetProofRewindBlockCount int
370
+ L1RpcUrl string
371
+ DefaultGasPrice uint64
372
+ MaxGasPrice uint64
373
+ GasPriceFactor float64
374
+ L1GasPrice L1GasPrice
375
+ SubscribeLogsChannelSize int
376
+ logger log.Logger
377
+ VirtualCountersSmtReduction float64
378
+ RejectLowGasPriceTransactions bool
378
379
}
379
380
380
381
// NewEthAPI returns APIImpl instance
@@ -384,29 +385,30 @@ func NewEthAPI(base *BaseAPI, db kv.RoDB, eth rpchelper.ApiBackend, txPool txpoo
384
385
}
385
386
386
387
return & APIImpl {
387
- BaseAPI : base ,
388
- db : db ,
389
- ethBackend : eth ,
390
- txPool : txPool ,
391
- mining : mining ,
392
- gasCache : NewGasPriceCache (),
393
- GasCap : gascap ,
394
- FeeCap : feecap ,
395
- AllowUnprotectedTxs : allowUnprotectedTxs ,
396
- ReturnDataLimit : returnDataLimit ,
397
- ZkRpcUrl : ethCfg .L2RpcUrl ,
398
- PoolManagerUrl : ethCfg .PoolManagerUrl ,
399
- AllowFreeTransactions : ethCfg .AllowFreeTransactions ,
400
- AllowPreEIP155Transactions : ethCfg .AllowPreEIP155Transactions ,
401
- MaxGetProofRewindBlockCount : maxGetProofRewindBlockCount ,
402
- L1RpcUrl : ethCfg .L1RpcUrl ,
403
- DefaultGasPrice : ethCfg .DefaultGasPrice ,
404
- MaxGasPrice : ethCfg .MaxGasPrice ,
405
- GasPriceFactor : ethCfg .GasPriceFactor ,
406
- L1GasPrice : L1GasPrice {},
407
- SubscribeLogsChannelSize : subscribeLogsChannelSize ,
408
- logger : logger ,
409
- VirtualCountersSmtReduction : ethCfg .VirtualCountersSmtReduction ,
388
+ BaseAPI : base ,
389
+ db : db ,
390
+ ethBackend : eth ,
391
+ txPool : txPool ,
392
+ mining : mining ,
393
+ gasCache : NewGasPriceCache (),
394
+ GasCap : gascap ,
395
+ FeeCap : feecap ,
396
+ AllowUnprotectedTxs : allowUnprotectedTxs ,
397
+ ReturnDataLimit : returnDataLimit ,
398
+ ZkRpcUrl : ethCfg .L2RpcUrl ,
399
+ PoolManagerUrl : ethCfg .PoolManagerUrl ,
400
+ AllowFreeTransactions : ethCfg .AllowFreeTransactions ,
401
+ AllowPreEIP155Transactions : ethCfg .AllowPreEIP155Transactions ,
402
+ MaxGetProofRewindBlockCount : maxGetProofRewindBlockCount ,
403
+ L1RpcUrl : ethCfg .L1RpcUrl ,
404
+ DefaultGasPrice : ethCfg .DefaultGasPrice ,
405
+ MaxGasPrice : ethCfg .MaxGasPrice ,
406
+ GasPriceFactor : ethCfg .GasPriceFactor ,
407
+ L1GasPrice : L1GasPrice {},
408
+ SubscribeLogsChannelSize : subscribeLogsChannelSize ,
409
+ logger : logger ,
410
+ VirtualCountersSmtReduction : ethCfg .VirtualCountersSmtReduction ,
411
+ RejectLowGasPriceTransactions : ethCfg .RejectLowGasPriceTransactions ,
410
412
}
411
413
}
412
414
0 commit comments