Skip to content

Commit

Permalink
finish mt-batcher
Browse files Browse the repository at this point in the history
  • Loading branch information
Ethanncnm committed Jul 19, 2023
1 parent f15226b commit 0db15e5
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
2 changes: 0 additions & 2 deletions mt-batcher/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ type Config struct {
HsmFeeAddress string
MinTimeoutRollupTxn uint64
RollupTimeout time.Duration
MinRollupTxn uint64
}

func NewConfig(ctx *cli.Context) (Config, error) {
Expand Down Expand Up @@ -133,7 +132,6 @@ func NewConfig(ctx *cli.Context) (Config, error) {
HsmFeeAddress: ctx.GlobalString(flags.HsmFeeAddressFlag.Name),
MinTimeoutRollupTxn: ctx.GlobalUint64(flags.MinTimeoutRollupTxnFlag.Name),
RollupTimeout: ctx.GlobalDuration(flags.RollupTimeoutFlag.Name),
MinRollupTxn: ctx.GlobalUint64(flags.MinRollupTxnFlag.Name),
}
return cfg, nil
}
8 changes: 0 additions & 8 deletions mt-batcher/flags/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,13 +341,6 @@ var (
EnvVar: prefixEnvVar(envVarPrefix, "HSM_CREDEN"),
}

MinRollupTxnFlag = cli.Uint64Flag{
Name: "min-rollup-txn",
Usage: "Rollup transaction min transactions for mantle da",
Value: 1,
EnvVar: prefixEnvVar(envVarPrefix, "MIN_ROLLUP_TXN"),
}

MinTimeoutRollupTxnFlag = cli.Uint64Flag{
Name: "min-rollup-txn-timeout",
Usage: "Rollup transaction timeout transactions for mantle da",
Expand Down Expand Up @@ -386,7 +379,6 @@ var requiredFlags = []cli.Flag{
BlockOffsetFlag,
MinTimeoutRollupTxnFlag,
RollupTimeoutFlag,
MinRollupTxnFlag,
RollUpMinTxnFlag,
RollUpMaxSizeFlag,
FeeSizeSecFlag,
Expand Down
1 change: 0 additions & 1 deletion mt-batcher/mt_batcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ func NewMantleBatch(cfg Config) (*MantleBatch, error) {
HsmCreden: cfg.HsmCreden,
HsmFeeAPIName: cfg.HsmFeeAPIName,
HsmFeeAddress: cfg.HsmFeeAddress,
MinRollupTxn: cfg.MinRollupTxn,
MinTimeoutRollupTxn: cfg.MinTimeoutRollupTxn,
RollupTimeout: cfg.RollupTimeout,
}
Expand Down

0 comments on commit 0db15e5

Please sign in to comment.