Commit 698b6406 authored by Baptiste Oueriagli's avatar Baptiste Oueriagli

nit(op-node): minor struct renaming

parent 4b3c59b8
...@@ -41,8 +41,8 @@ func (ds *DataSourceFactory) OpenData(ctx context.Context, id eth.BlockID, batch ...@@ -41,8 +41,8 @@ func (ds *DataSourceFactory) OpenData(ctx context.Context, id eth.BlockID, batch
return NewDataSource(ctx, ds.log, ds.cfg, ds.fetcher, id, batcherAddr) return NewDataSource(ctx, ds.log, ds.cfg, ds.fetcher, id, batcherAddr)
} }
// minimalDataSourceConfig regroups the mandatory rollup.Config fields needed for DataFromEVMTransactions. // dataSourceConfig regroups the mandatory rollup.Config fields needed for DataFromEVMTransactions.
type minimalDataSourceConfig struct { type dataSourceConfig struct {
l1Signer types.Signer l1Signer types.Signer
batchInboxAddress common.Address batchInboxAddress common.Address
} }
...@@ -56,7 +56,7 @@ type DataSource struct { ...@@ -56,7 +56,7 @@ type DataSource struct {
data []eth.Data data []eth.Data
// Required to re-attempt fetching // Required to re-attempt fetching
id eth.BlockID id eth.BlockID
cfg minimalDataSourceConfig cfg dataSourceConfig
fetcher L1TransactionFetcher fetcher L1TransactionFetcher
log log.Logger log log.Logger
...@@ -71,7 +71,7 @@ func NewDataSource(ctx context.Context, log log.Logger, cfg *rollup.Config, fetc ...@@ -71,7 +71,7 @@ func NewDataSource(ctx context.Context, log log.Logger, cfg *rollup.Config, fetc
return &DataSource{ return &DataSource{
open: false, open: false,
id: block, id: block,
cfg: minimalDataSourceConfig{ cfg: dataSourceConfig{
l1Signer: cfg.L1Signer(), l1Signer: cfg.L1Signer(),
batchInboxAddress: cfg.BatchInboxAddress, batchInboxAddress: cfg.BatchInboxAddress,
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment