mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
Changed default value of maxpeers from 200 to 50, update docs (#555)
* changed default of maxpeers from 200 to 50 * docs: update additional notes for new-cli * docs: update additional notes for new-cli * small bug fix in the script to fix shopt issue Co-authored-by: Manav Darji <manavdarji.india@gmail.com>
This commit is contained in:
parent
a977a76f97
commit
5c5c992440
5 changed files with 13 additions and 15 deletions
|
|
@ -329,7 +329,7 @@ func setDefaultMumbaiGethConfig(ctx *cli.Context, config *gethConfig) {
|
|||
config.Eth.TxPool.AccountQueue = 64
|
||||
config.Eth.TxPool.GlobalQueue = 131072
|
||||
config.Eth.TxPool.Lifetime = 90 * time.Minute
|
||||
config.Node.P2P.MaxPeers = 200
|
||||
config.Node.P2P.MaxPeers = 50
|
||||
config.Metrics.Enabled = true
|
||||
// --pprof is enabled in 'internal/debug/flags.go'
|
||||
}
|
||||
|
|
@ -352,7 +352,7 @@ func setDefaultBorMainnetGethConfig(ctx *cli.Context, config *gethConfig) {
|
|||
config.Eth.TxPool.AccountQueue = 64
|
||||
config.Eth.TxPool.GlobalQueue = 131072
|
||||
config.Eth.TxPool.Lifetime = 90 * time.Minute
|
||||
config.Node.P2P.MaxPeers = 200
|
||||
config.Node.P2P.MaxPeers = 50
|
||||
config.Metrics.Enabled = true
|
||||
// --pprof is enabled in 'internal/debug/flags.go'
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,18 +5,16 @@
|
|||
|
||||
- [Configuration file](./config.md)
|
||||
|
||||
## Deprecation notes
|
||||
## Additional notes
|
||||
|
||||
- The new entrypoint to run the Bor client is ```server```.
|
||||
|
||||
```
|
||||
$ bor server
|
||||
```
|
||||
```
|
||||
$ bor server <flags>
|
||||
```
|
||||
|
||||
- Toml files to configure nodes are being deprecated. Currently, we only allow for static and trusted nodes to be configured using toml files.
|
||||
- Toml files used earlier just to configure static/trusted nodes are being deprecated. Instead, a toml file now can be used instead of flags and can contain all configuration for the node to run. The link to a sample config file is given above. To simply run bor with a configuration file, the following command can be used.
|
||||
|
||||
```
|
||||
$ bor server --config ./legacy.toml
|
||||
```
|
||||
|
||||
- ```Admin```, ```Personal``` and account related endpoints in ```Eth``` are being removed from the JsonRPC interface. Some of this functionality will be moved to the new GRPC server for operational tasks.
|
||||
```
|
||||
$ bor server --config <path_to_config.toml>
|
||||
```
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ ethstats = ""
|
|||
["eth.requiredblocks"]
|
||||
|
||||
[p2p]
|
||||
maxpeers = 30
|
||||
maxpeers = 50
|
||||
maxpendpeers = 50
|
||||
bind = "0.0.0.0"
|
||||
port = 30303
|
||||
|
|
|
|||
|
|
@ -396,7 +396,7 @@ func DefaultConfig() *Config {
|
|||
LogLevel: "INFO",
|
||||
DataDir: DefaultDataDir(),
|
||||
P2P: &P2PConfig{
|
||||
MaxPeers: 30,
|
||||
MaxPeers: 50,
|
||||
MaxPendPeers: 50,
|
||||
Bind: "0.0.0.0",
|
||||
Port: 30303,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env sh
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Instructions:
|
||||
|
|
|
|||
Loading…
Reference in a new issue