Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

feat(prover): remove more database related code #623

Merged
merged 3 commits into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
15 changes: 0 additions & 15 deletions cmd/flags/prover.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,19 +145,6 @@ var (
Value: 0,
Category: proverCategory,
}
// DB file location
// Required for guardian prover only
DatabasePath = &cli.StringFlag{
Name: "db.path",
Usage: "Database file location",
Category: proverCategory,
}
DatabaseCacheSize = &cli.Uint64Flag{
Name: "db.cacheSize",
Usage: "Database cache size in megabytes",
Value: 16,
Category: proverCategory,
}
Allowance = &cli.StringFlag{
Name: "prover.allowance",
Usage: "Amount to approve AssignmentHook contract for TaikoToken usage",
Expand Down Expand Up @@ -216,8 +203,6 @@ var ProverFlags = MergeFlags(CommonFlags, []cli.Flag{
MaxProposedIn,
TaikoTokenAddress,
MaxAcceptableBlockSlippage,
DatabasePath,
DatabaseCacheSize,
ProverAssignmentHookAddress,
Allowance,
L1NodeVersion,
Expand Down
2 changes: 0 additions & 2 deletions prover/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,6 @@ func NewConfigFromCliContext(c *cli.Context) (*Config, error) {
MaxExpiry: c.Duration(flags.MaxExpiry.Name),
MaxBlockSlippage: c.Uint64(flags.MaxAcceptableBlockSlippage.Name),
MaxProposedIn: c.Uint64(flags.MaxProposedIn.Name),
DatabasePath: c.String(flags.DatabasePath.Name),
DatabaseCacheSize: c.Uint64(flags.DatabaseCacheSize.Name),
Allowance: allowance,
L1NodeVersion: c.String(flags.L1NodeVersion.Name),
L2NodeVersion: c.String(flags.L2NodeVersion.Name),
Expand Down
6 changes: 1 addition & 5 deletions prover/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ var (
l1WsEndpoint = os.Getenv("L1_NODE_WS_ENDPOINT")
l1HttpEndpoint = os.Getenv("L1_NODE_HTTP_ENDPOINT")
l1BeaconEndpoint = os.Getenv("L1_NODE_HTTP_ENDPOINT")
l1NodeVersion = "1.0.0"
l2WsEndpoint = os.Getenv("L2_EXECUTION_ENGINE_WS_ENDPOINT")
l2HttpEndpoint = os.Getenv("L2_EXECUTION_ENGINE_HTTP_ENDPOINT")
l1NodeVersion = "1.0.0"
l2NodeVersion = "0.1.0"
taikoL1 = os.Getenv("TAIKO_L1_ADDRESS")
taikoL2 = os.Getenv("TAIKO_L2_ADDRESS")
Expand Down Expand Up @@ -89,8 +89,6 @@ func (s *ProverTestSuite) TestNewConfigFromCliContextGuardianProver() {
"--" + flags.ProveBlockMaxTxGasFeeCap.Name, "256",
"--" + flags.Graffiti.Name, "",
"--" + flags.ProveUnassignedBlocks.Name,
"--" + flags.DatabasePath.Name, "dbPath",
"--" + flags.DatabaseCacheSize.Name, "128",
"--" + flags.MaxProposedIn.Name, "100",
"--" + flags.Allowance.Name, allowance,
"--" + flags.L1NodeVersion.Name, l1NodeVersion,
Expand Down Expand Up @@ -130,8 +128,6 @@ func (s *ProverTestSuite) SetupApp() *cli.App {
&cli.Uint64Flag{Name: flags.MinOptimisticTierFee.Name},
&cli.Uint64Flag{Name: flags.MinSgxTierFee.Name},
&cli.Uint64Flag{Name: flags.ProveBlockTxGasLimit.Name},
&cli.StringFlag{Name: flags.DatabasePath.Name},
&cli.Uint64Flag{Name: flags.DatabaseCacheSize.Name},
&cli.Uint64Flag{Name: flags.MaxProposedIn.Name},
&cli.StringFlag{Name: flags.ProverAssignmentHookAddress.Name},
&cli.StringFlag{Name: flags.Allowance.Name},
Expand Down
Loading