Skip to content

Commit

Permalink
fix: proof timeout flag
Browse files Browse the repository at this point in the history
  • Loading branch information
ratankaliani committed Oct 12, 2024
1 parent 3e7725d commit 8f6a06b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
3 changes: 0 additions & 3 deletions proposer/op/proposer/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ type CLIConfig struct {
BeaconRpc string
// Directory to store the transaction cache when determining span batch boundaries.
TxCacheOutDir string
// Number of concurrent requests to make when fetching L1 data to determine span batch boundaries.
BatchDecoderConcurrentReqs uint64
// The max size (in blocks) of a proof we will attempt to generate. If span batches are larger, we break them up.
MaxBlockRangePerSpanProof uint64
// The Chain ID of the L2 chain.
Expand Down Expand Up @@ -157,7 +155,6 @@ func NewConfig(ctx *cli.Context) *CLIConfig {
MaxBlockRangePerSpanProof: ctx.Uint64(flags.MaxBlockRangePerSpanProofFlag.Name),
ProofTimeout: ctx.Uint64(flags.ProofTimeoutFlag.Name),
TxCacheOutDir: ctx.String(flags.TxCacheOutDirFlag.Name),
BatchDecoderConcurrentReqs: ctx.Uint64(flags.BatchDecoderConcurrentReqsFlag.Name),
OPSuccinctServerUrl: ctx.String(flags.OPSuccinctServerUrlFlag.Name),
MaxConcurrentProofRequests: ctx.Uint64(flags.MaxConcurrentProofRequestsFlag.Name),
BatchInbox: ctx.String(flags.BatchInboxFlag.Name),
Expand Down
8 changes: 1 addition & 7 deletions proposer/op/proposer/flags/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,6 @@ var (
Value: "/tmp/batch_decoder/transactions_cache",
EnvVars: prefixEnvVars("TX_CACHE_OUT_DIR"),
}
BatchDecoderConcurrentReqsFlag = &cli.Uint64Flag{
Name: "batch-decoder-concurrent-reqs",
Usage: "Concurrency level when fetching transactions to determine span batch boundaries",
Value: 10,
EnvVars: prefixEnvVars("BATCH_DECODER_CONCURRENT_REQS"),
}
BatchInboxFlag = &cli.StringFlag{
Name: "batch-inbox",
Usage: "Batch Inbox Address",
Expand Down Expand Up @@ -154,8 +148,8 @@ var optionalFlags = []cli.Flag{
SlackTokenFlag,
MaxBlockRangePerSpanProofFlag,
TxCacheOutDirFlag,
BatchDecoderConcurrentReqsFlag,
OPSuccinctServerUrlFlag,
ProofTimeoutFlag,
MaxConcurrentProofRequestsFlag,
BatchInboxFlag,
BatcherAddressFlag,
Expand Down
2 changes: 0 additions & 2 deletions proposer/op/proposer/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ type ProposerConfig struct {
SlackToken string
BeaconRpc string
TxCacheOutDir string
BatchDecoderConcurrentReqs uint64
MaxBlockRangePerSpanProof uint64
L2ChainID uint64
ProofTimeout uint64
Expand Down Expand Up @@ -118,7 +117,6 @@ func (ps *ProposerService) initFromCLIConfig(ctx context.Context, version string
ps.SlackToken = cfg.SlackToken
ps.BeaconRpc = cfg.BeaconRpc
ps.TxCacheOutDir = cfg.TxCacheOutDir
ps.BatchDecoderConcurrentReqs = cfg.BatchDecoderConcurrentReqs
ps.MaxBlockRangePerSpanProof = cfg.MaxBlockRangePerSpanProof
ps.OPSuccinctServerUrl = cfg.OPSuccinctServerUrl
ps.ProofTimeout = cfg.ProofTimeout
Expand Down

0 comments on commit 8f6a06b

Please sign in to comment.