Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tx-submitter/entry.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func Main() func(ctx *cli.Context) error {
},
}

eventIndexer := event.NewEventIndexer(cfg.StakingEventStorePath, l1Client, new(big.Int).SetUint64(cfg.L1StakingDeployedBlockNumber), filter, cfg.EventIndexStep)
eventIndexer := event.NewEventIndexer(cfg.StakingEventStoreFilename, l1Client, new(big.Int).SetUint64(cfg.L1StakingDeployedBlockNumber), filter, cfg.EventIndexStep)

// new rotator
rotator := services.NewRotator(common.HexToAddress(cfg.L2SequencerAddress), common.HexToAddress(cfg.L2GovAddress), eventIndexer)
Expand Down
12 changes: 6 additions & 6 deletions tx-submitter/flags/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,11 @@ var (
Value: "journal.rlp",
}
// listener processed block record path
StakingEventStorePathFlag = cli.StringFlag{
Name: "StakingEventStorePath",
Usage: "The path of the storage",
EnvVar: prefixEnvVar("StakingEventStorePath"),
Value: "StakingEventStorePath.json",
StakingEventStoreFileFlag = cli.StringFlag{
Name: "StakingEventStoreFileName",
Usage: "The file name of the storage",
EnvVar: prefixEnvVar("STAKING_EVENT_STORE_FILENAME"),
Value: "StakingEventStore.json",
}

CalldataFeeBumpFlag = cli.Uint64Flag{
Expand Down Expand Up @@ -343,7 +343,7 @@ var optionalFlags = []cli.Flag{
ExternalSignRsaPriv,
RoughEstimateGasFlag,
RotatorBufferFlag,
StakingEventStorePathFlag,
StakingEventStoreFileFlag,
EventIndexStepFlag,
}

Expand Down
4 changes: 2 additions & 2 deletions tx-submitter/utils/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ type Config struct {
// rotator interval buffer
RotatorBuffer int64
// listener process path
StakingEventStorePath string
StakingEventStoreFilename string
// l1 staking deployed block number
L1StakingDeployedBlockNumber uint64
// event indexer index step
Expand Down Expand Up @@ -166,7 +166,7 @@ func NewConfig(ctx *cli.Context) (Config, error) {
RotatorBuffer: ctx.GlobalInt64(flags.RotatorBufferFlag.Name),

// path
StakingEventStorePath: ctx.GlobalString(flags.StakingEventStorePathFlag.Name),
StakingEventStoreFilename: ctx.GlobalString(flags.StakingEventStoreFileFlag.Name),
// l1 staking deployed block number
L1StakingDeployedBlockNumber: ctx.GlobalUint64(flags.L1StakingDeployedBlocknumFlag.Name),
// index step
Expand Down