Skip to content

Commit

Permalink
cli/snapshot: comment
Browse files Browse the repository at this point in the history
Signed-off-by: Delweng <delweng@gmail.com>
  • Loading branch information
jsvisa committed Mar 1, 2023
1 parent 3c7d4cb commit a7568d9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions internal/cli/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ type PruneBlockCommand struct {
func (c *PruneBlockCommand) MarkDown() string {
items := []string{
"# Prune block",
"The ```bor snapshot prune-block``` command will prune ancient blockchain offline",
"The ```bor snapshot prune-block``` command will prune ancient blockchain data offline",
c.Flags().MarkDown(),
}

Expand All @@ -220,7 +220,7 @@ func (c *PruneBlockCommand) Help() string {

// Synopsis implements the cli.Command interface
func (c *PruneBlockCommand) Synopsis() string {
return "Prune ancient data"
return "Prune ancient chaindata"
}

// Flags: datadir, datadir.ancient, cache.trie.journal, bloomfilter.size
Expand All @@ -230,7 +230,7 @@ func (c *PruneBlockCommand) Flags() *flagset.Flagset {
flags.StringFlag(&flagset.StringFlag{
Name: "datadir.ancient",
Value: &c.datadirAncient,
Usage: "Path of the ancient data directory to store information",
Usage: "Path of the old ancient data directory",
Default: "",
})

Expand All @@ -243,7 +243,7 @@ func (c *PruneBlockCommand) Flags() *flagset.Flagset {
})
flags.Uint64Flag(&flagset.Uint64Flag{
Name: "block-amount-reserved",
Usage: "Sets the expected remained amount of blocks for offline block prune",
Usage: "Sets the expected reserved number of blocks for offline block prune",
Value: &c.blockAmountReserved,
Default: 1024,
})
Expand All @@ -258,7 +258,7 @@ func (c *PruneBlockCommand) Flags() *flagset.Flagset {
flags.BoolFlag(&flagset.BoolFlag{
Name: "check-snapshot-with-mpt",
Value: &c.checkSnapshotWithMPT,
Usage: "Path of the trie journal directory to store information",
Usage: "Enable checking between snapshot and MPT",
})

return flags
Expand Down

0 comments on commit a7568d9

Please sign in to comment.