Skip to content

Commit

Permalink
cmd/geth: add classic,mordor,kotti flags for dbcmd and chaincmd
Browse files Browse the repository at this point in the history
Date: 2021-04-28 06:52:00-05:00
Signed-off-by: meows <b5c6@protonmail.com>
  • Loading branch information
meowsbits committed Apr 28, 2021
1 parent a7443c0 commit 49bd5e7
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
3 changes: 3 additions & 0 deletions cmd/geth/chaincmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ It expects the genesis file as argument.`,
utils.RinkebyFlag,
utils.GoerliFlag,
utils.YoloV3Flag,
utils.ClassicFlag,
utils.MordorFlag,
utils.KottiFlag,
},
Category: "BLOCKCHAIN COMMANDS",
Description: `
Expand Down
21 changes: 21 additions & 0 deletions cmd/geth/dbcmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ Remove blockchain and state databases`,
utils.RinkebyFlag,
utils.GoerliFlag,
utils.YoloV3Flag,
utils.ClassicFlag,
utils.MordorFlag,
utils.KottiFlag,
},
Usage: "Inspect the storage size for each type of data in the database",
Description: `This commands iterates the entire database. If the optional 'prefix' and 'start' arguments are provided, then the iteration is limited to the given subset of data.`,
Expand All @@ -90,6 +93,9 @@ Remove blockchain and state databases`,
utils.RinkebyFlag,
utils.GoerliFlag,
utils.YoloV3Flag,
utils.ClassicFlag,
utils.MordorFlag,
utils.KottiFlag,
},
}
dbCompactCmd = cli.Command{
Expand All @@ -104,6 +110,9 @@ Remove blockchain and state databases`,
utils.RinkebyFlag,
utils.GoerliFlag,
utils.YoloV3Flag,
utils.ClassicFlag,
utils.MordorFlag,
utils.KottiFlag,
utils.CacheFlag,
utils.CacheDatabaseFlag,
},
Expand All @@ -124,6 +133,9 @@ corruption if it is aborted during execution'!`,
utils.RinkebyFlag,
utils.GoerliFlag,
utils.YoloV3Flag,
utils.ClassicFlag,
utils.MordorFlag,
utils.KottiFlag,
},
Description: "This command looks up the specified database key from the database.",
}
Expand All @@ -140,6 +152,9 @@ corruption if it is aborted during execution'!`,
utils.RinkebyFlag,
utils.GoerliFlag,
utils.YoloV3Flag,
utils.ClassicFlag,
utils.MordorFlag,
utils.KottiFlag,
},
Description: `This command deletes the specified database key from the database.
WARNING: This is a low-level operation which may cause database corruption!`,
Expand All @@ -157,6 +172,9 @@ WARNING: This is a low-level operation which may cause database corruption!`,
utils.RinkebyFlag,
utils.GoerliFlag,
utils.YoloV3Flag,
utils.ClassicFlag,
utils.MordorFlag,
utils.KottiFlag,
},
Description: `This command sets a given database key to the given value.
WARNING: This is a low-level operation which may cause database corruption!`,
Expand All @@ -174,6 +192,9 @@ WARNING: This is a low-level operation which may cause database corruption!`,
utils.RinkebyFlag,
utils.GoerliFlag,
utils.YoloV3Flag,
utils.ClassicFlag,
utils.MordorFlag,
utils.KottiFlag,
},
Description: "This command looks up the specified database key from the database.",
}
Expand Down
6 changes: 3 additions & 3 deletions cmd/geth/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,13 @@ var (
utils.DeveloperFlag,
utils.DeveloperPeriodFlag,
utils.DeveloperPoWFlag,
utils.ClassicFlag,
utils.MordorFlag,
utils.RopstenFlag,
utils.RinkebyFlag,
utils.KottiFlag,
utils.GoerliFlag,
utils.YoloV3Flag,
utils.ClassicFlag,
utils.MordorFlag,
utils.KottiFlag,
utils.VMEnableDebugFlag,
utils.NetworkIdFlag,
utils.EthStatsURLFlag,
Expand Down

0 comments on commit 49bd5e7

Please sign in to comment.