Skip to content

Commit

Permalink
s/tx/transactor
Browse files Browse the repository at this point in the history
  • Loading branch information
ian-shim committed Nov 13, 2023
1 parent 1652fa8 commit 10bf67c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions disperser/cmd/disperserserver/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ func RunDisperserServer(ctx *cli.Context) error {
return err
}

tx, err := eth.NewTransactor(logger, client, config.BLSOperatorStateRetrieverAddr, config.EigenDAServiceManagerAddr)
transactor, err := eth.NewTransactor(logger, client, config.BLSOperatorStateRetrieverAddr, config.EigenDAServiceManagerAddr)
if err != nil {
return err
}
blockStaleMeasure, err := tx.GetBlockStaleMeasure(context.Background())
blockStaleMeasure, err := transactor.GetBlockStaleMeasure(context.Background())
if err != nil {
return fmt.Errorf("failed to get BLOCK_STALE_MEASURE: %w", err)
}
storeDurationBlocks, err := tx.GetStoreDurationBlocks(context.Background())
storeDurationBlocks, err := transactor.GetStoreDurationBlocks(context.Background())
if err != nil || storeDurationBlocks == 0 {
return fmt.Errorf("failed to get STORE_DURATION_BLOCKS: %w", err)
}
Expand All @@ -106,7 +106,7 @@ func RunDisperserServer(ctx *cli.Context) error {

// TODO: create a separate metrics for batcher
metrics := disperser.NewMetrics(config.MetricsConfig.HTTPPort, logger)
server := apiserver.NewDispersalServer(config.ServerConfig, blobStore, tx, logger, metrics, ratelimiter, config.RateConfig)
server := apiserver.NewDispersalServer(config.ServerConfig, blobStore, transactor, logger, metrics, ratelimiter, config.RateConfig)

// Enable Metrics Block
if config.MetricsConfig.EnableMetrics {
Expand Down

0 comments on commit 10bf67c

Please sign in to comment.