mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-11 14:33:52 +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
8aab374926
commit
e17ee36ebe
5 changed files with 13 additions and 15 deletions
|
|
@ -327,7 +327,7 @@ func setDefaultMumbaiGethConfig(ctx *cli.Context, config *gethConfig) {
|
||||||
config.Eth.TxPool.AccountQueue = 64
|
config.Eth.TxPool.AccountQueue = 64
|
||||||
config.Eth.TxPool.GlobalQueue = 131072
|
config.Eth.TxPool.GlobalQueue = 131072
|
||||||
config.Eth.TxPool.Lifetime = 90 * time.Minute
|
config.Eth.TxPool.Lifetime = 90 * time.Minute
|
||||||
config.Node.P2P.MaxPeers = 200
|
config.Node.P2P.MaxPeers = 50
|
||||||
config.Metrics.Enabled = true
|
config.Metrics.Enabled = true
|
||||||
// --pprof is enabled in 'internal/debug/flags.go'
|
// --pprof is enabled in 'internal/debug/flags.go'
|
||||||
}
|
}
|
||||||
|
|
@ -350,7 +350,7 @@ func setDefaultBorMainnetGethConfig(ctx *cli.Context, config *gethConfig) {
|
||||||
config.Eth.TxPool.AccountQueue = 64
|
config.Eth.TxPool.AccountQueue = 64
|
||||||
config.Eth.TxPool.GlobalQueue = 131072
|
config.Eth.TxPool.GlobalQueue = 131072
|
||||||
config.Eth.TxPool.Lifetime = 90 * time.Minute
|
config.Eth.TxPool.Lifetime = 90 * time.Minute
|
||||||
config.Node.P2P.MaxPeers = 200
|
config.Node.P2P.MaxPeers = 50
|
||||||
config.Metrics.Enabled = true
|
config.Metrics.Enabled = true
|
||||||
// --pprof is enabled in 'internal/debug/flags.go'
|
// --pprof is enabled in 'internal/debug/flags.go'
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,18 +5,16 @@
|
||||||
|
|
||||||
- [Configuration file](./config.md)
|
- [Configuration file](./config.md)
|
||||||
|
|
||||||
## Deprecation notes
|
## Additional notes
|
||||||
|
|
||||||
- The new entrypoint to run the Bor client is ```server```.
|
- 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
|
$ bor server --config <path_to_config.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.
|
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ ethstats = ""
|
||||||
["eth.requiredblocks"]
|
["eth.requiredblocks"]
|
||||||
|
|
||||||
[p2p]
|
[p2p]
|
||||||
maxpeers = 30
|
maxpeers = 50
|
||||||
maxpendpeers = 50
|
maxpendpeers = 50
|
||||||
bind = "0.0.0.0"
|
bind = "0.0.0.0"
|
||||||
port = 30303
|
port = 30303
|
||||||
|
|
|
||||||
|
|
@ -399,7 +399,7 @@ func DefaultConfig() *Config {
|
||||||
LogLevel: "INFO",
|
LogLevel: "INFO",
|
||||||
DataDir: DefaultDataDir(),
|
DataDir: DefaultDataDir(),
|
||||||
P2P: &P2PConfig{
|
P2P: &P2PConfig{
|
||||||
MaxPeers: 30,
|
MaxPeers: 50,
|
||||||
MaxPendPeers: 50,
|
MaxPendPeers: 50,
|
||||||
Bind: "0.0.0.0",
|
Bind: "0.0.0.0",
|
||||||
Port: 30303,
|
Port: 30303,
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env sh
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# Instructions:
|
# Instructions:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue