Skip to content

Commit

Permalink
Merge branch 'main' into ratan/fix-secp256k1-add-assign
Browse files Browse the repository at this point in the history
  • Loading branch information
ratankaliani authored Oct 3, 2024
2 parents 8927d2b + d9ba10b commit 7cb3a88
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ services:
depends_on:
- op-succinct-server
volumes:
- ./db:/usr/local/bin/dbdata/
- ./db:/usr/local/bin/dbdata
2 changes: 1 addition & 1 deletion proposer/op/op_proposer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
--l1-eth-rpc=${L1_RPC} \
--beacon-rpc=${L1_BEACON_RPC} \
--max-concurrent-proof-requests=${MAX_CONCURRENT_PROOF_REQUESTS:-10} \
--db-path=${DB_PATH:-/usr/local/bin/dbdata/proofs.db} \
--db-path=${DB_PATH:-/usr/local/bin/dbdata} \
--op-succinct-server-url=${OP_SUCCINCT_SERVER_URL:-http://op-succinct-server:3000} \
--max-block-range-per-span-proof=${MAX_BLOCK_RANGE_PER_SPAN_PROOF:-20} \
--use-cached-db=${USE_CACHED_DB:-false}
7 changes: 6 additions & 1 deletion proposer/op/proposer/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ package proposer

import (
"errors"
"fmt"
"log"
"path/filepath"
"time"

"github.com/urfave/cli/v2"
Expand Down Expand Up @@ -142,6 +144,9 @@ func NewConfig(ctx *cli.Context) *CLIConfig {
log.Fatal(err)
}

dbPath := ctx.String(flags.DbPathFlag.Name)
dbPath = filepath.Join(dbPath, fmt.Sprintf("%d", rollupConfig.L2ChainID.Uint64()), "proofs.db")

return &CLIConfig{
// Required Flags
L1EthRpc: ctx.String(flags.L1EthRpcFlag.Name),
Expand All @@ -164,7 +169,7 @@ func NewConfig(ctx *cli.Context) *CLIConfig {
DisputeGameType: uint32(ctx.Uint(flags.DisputeGameTypeFlag.Name)),
ActiveSequencerCheckDuration: ctx.Duration(flags.ActiveSequencerCheckDurationFlag.Name),
WaitNodeSync: ctx.Bool(flags.WaitNodeSyncFlag.Name),
DbPath: ctx.String(flags.DbPathFlag.Name),
DbPath: dbPath,
UseCachedDb: ctx.Bool(flags.UseCachedDbFlag.Name),
MaxSpanBatchDeviation: ctx.Uint64(flags.MaxSpanBatchDeviationFlag.Name),
MaxBlockRangePerSpanProof: ctx.Uint64(flags.MaxBlockRangePerSpanProofFlag.Name),
Expand Down
4 changes: 2 additions & 2 deletions proposer/op/proposer/flags/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ var (
}
DbPathFlag = &cli.StringFlag{
Name: "db-path",
Usage: "Path to the database used to track OP Succinct proof generation",
Value: "./op-proposer/proofs.db",
Usage: "Path to the database folder used to track OP Succinct proof generation. The DB file is always stored at DbPathFlag/{chain_id}/proofs.db",
Value: "./op-proposer",
EnvVars: prefixEnvVars("DB_PATH"),
}
UseCachedDbFlag = &cli.BoolFlag{
Expand Down

0 comments on commit 7cb3a88

Please sign in to comment.