Skip to content

Commit

Permalink
chore: update other flags
Browse files Browse the repository at this point in the history
  • Loading branch information
leovct committed Oct 26, 2023
1 parent 0656586 commit 77d1964
Show file tree
Hide file tree
Showing 8 changed files with 153 additions and 153 deletions.
4 changes: 2 additions & 2 deletions docs/cli/account_import.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ The ```account import``` command imports an account in Json format to the Bor da

## Options

- ```datadir```: Path of the data directory to store information
- ```keystore```: Path of the data directory to store keys

- ```keystore```: Path of the data directory to store keys
- ```datadir```: Path of the data directory to store information
4 changes: 2 additions & 2 deletions docs/cli/account_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ The `account list` command lists all the accounts in the Bor data directory.

## Options

- ```keystore```: Path of the data directory to store keys
- ```datadir```: Path of the data directory to store information

- ```datadir```: Path of the data directory to store information
- ```keystore```: Path of the data directory to store keys
6 changes: 3 additions & 3 deletions docs/cli/attach.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Connect to remote Bor IPC console.

## Options

- ```exec```: Command to run in remote console

- ```preload```: Comma separated list of JavaScript files to preload into the console

- ```jspath```: JavaScript root path for `loadScript`
- ```jspath```: JavaScript root path for `loadScript`

- ```exec```: Command to run in remote console
10 changes: 5 additions & 5 deletions docs/cli/bootnode.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@

- ```listen-addr```: listening address of bootnode (<ip>:<port>) (default: 0.0.0.0:30303)

- ```metrics```: Enable metrics collection and reporting (default: true)

- ```prometheus-addr```: listening address of bootnode (<ip>:<port>) (default: 127.0.0.1:7071)

- ```log-level```: log level (trace|debug|info|warn|error|crit), will be deprecated soon. Use verbosity instead (default: info)

- ```nat```: port mapping mechanism (any|none|upnp|pmp|extip:<IP>) (default: none)

- ```node-key```: file or hex node key

- ```save-key```: path to save the ecdsa private key

- ```metrics```: Enable metrics collection and reporting (default: true)

- ```v5```: Enable UDP v5 (default: false)

- ```verbosity```: Logging verbosity (5=trace|4=debug|3=info|2=warn|1=error|0=crit) (default: 3)

- ```save-key```: path to save the ecdsa private key
- ```nat```: port mapping mechanism (any|none|upnp|pmp|extip:<IP>) (default: none)

- ```dry-run```: validates parameters and prints bootnode configurations, but does not start bootnode (default: false)
8 changes: 4 additions & 4 deletions docs/cli/debug_pprof.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ The ```debug pprof <enode>``` command will create an archive containing bor ppro

## Options

- ```address```: Address of the grpc endpoint (default: 127.0.0.1:3131)
- ```output```: Output directory

- ```seconds```: seconds to profile (default: 2)
- ```skiptrace```: Skip running the trace (default: false)

- ```output```: Output directory
- ```address```: Address of the grpc endpoint (default: 127.0.0.1:3131)

- ```skiptrace```: Skip running the trace (default: false)
- ```seconds```: seconds to profile (default: 2)
258 changes: 129 additions & 129 deletions docs/cli/server.md

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions docs/cli/snapshot_prune-state.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ The ```bor snapshot prune-state``` command will prune historical state data with

## Options

- ```bloomfilter.size```: Size of the bloom filter (default: 2048)

- ```datadir```: Path of the data directory to store information

- ```keystore```: Path of the data directory to store keys

- ```datadir.ancient```: Path of the ancient data directory to store information

- ```bloomfilter.size```: Size of the bloom filter (default: 2048)

- ```datadir```: Path of the data directory to store information

### Cache Options

- ```cache```: Megabytes of memory allocated to internal caching (default: 1024)
Expand Down
8 changes: 4 additions & 4 deletions internal/cli/server/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func (c *Command) Flags(config *Config) *flagset.Flagset {
})
f.IntFlag(&flagset.IntFlag{
Name: "verbosity",
Usage: "Logging verbosity for the server (5=trace|4=debug|3=info|2=warn|1=error|0=crit), default = 3",
Usage: "Logging verbosity for the server (5=trace|4=debug|3=info|2=warn|1=error|0=crit)",
Value: &c.cliConfig.Verbosity,
Default: c.cliConfig.Verbosity,
})
Expand Down Expand Up @@ -70,13 +70,13 @@ func (c *Command) Flags(config *Config) *flagset.Flagset {
})
f.Uint64Flag(&flagset.Uint64Flag{
Name: "rpc.batchlimit",
Usage: "Maximum number of messages in a batch (default=100, use 0 for no limits)",
Usage: "Maximum number of messages in a batch (use 0 for no limits)",
Value: &c.cliConfig.RPCBatchLimit,
Default: c.cliConfig.RPCBatchLimit,
})
f.Uint64Flag(&flagset.Uint64Flag{
Name: "rpc.returndatalimit",
Usage: "Maximum size (in bytes) a result of an rpc request could have (default=100000, use 0 for no limits)",
Usage: "Maximum size (in bytes) a result of an rpc request could have (use 0 for no limits)",
Value: &c.cliConfig.RPCReturnDataLimit,
Default: c.cliConfig.RPCReturnDataLimit,
})
Expand Down Expand Up @@ -432,7 +432,7 @@ func (c *Command) Flags(config *Config) *flagset.Flagset {
})
f.Uint64Flag(&flagset.Uint64Flag{
Name: "cache.triesinmemory",
Usage: "Number of block states (tries) to keep in memory (default = 128)",
Usage: "Number of block states (tries) to keep in memory",
Value: &c.cliConfig.Cache.TriesInMemory,
Default: c.cliConfig.Cache.TriesInMemory,
Group: "Cache",
Expand Down

0 comments on commit 77d1964

Please sign in to comment.