Adding --maxpeers flag info

This commit is contained in:
fixanoid 2018-05-01 15:11:42 -04:00 committed by GitHub
parent aa163f0367
commit d4a1b09581
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -146,6 +146,8 @@ We communicate blocks over the HTTP transport layer built in to etcd Raft. It's
Quorum listens on port 50400 by default for the raft transport, but this is configurable with the `--raftport` flag.
Default number of peers is set to be 25. Max number of peers is configurable with the `--maxpeers N` where N is expected size of the cluster.
## Initial configuration, and enacting membership changes
Currently Raft-based consensus requires that all _initial_ nodes in the cluster are configured to list the others up-front as [static peers](https://github.com/ethereum/go-ethereum/wiki/Connecting-to-the-network#static-nodes). These enode ID URIs _must_ include a `raftport` querystring parameter specifying the raft port for each peer: e.g. `enode://abcd@127.0.0.1:30400?raftport=50400`. Note that the order of the enodes in the `static-nodes.json` file needs to be the same across all peers.