Merge pull request #2876 from nspcc-dev/improve-consensus-doc

Improve consensus doc and docker configs
This commit is contained in:
Roman Khimov 2023-01-13 16:51:50 +07:00 committed by GitHub
commit c46b7a9e34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 8 deletions

View file

@ -47,7 +47,7 @@ ApplicationConfiguration:
PingTimeout: 90s PingTimeout: 90s
MaxPeers: 10 MaxPeers: 10
AttemptConnPeers: 5 AttemptConnPeers: 5
MinPeers: 3 MinPeers: 2
Relay: true Relay: true
Oracle: Oracle:
Enabled: false Enabled: false

View file

@ -47,7 +47,7 @@ ApplicationConfiguration:
PingTimeout: 90s PingTimeout: 90s
MaxPeers: 10 MaxPeers: 10
AttemptConnPeers: 5 AttemptConnPeers: 5
MinPeers: 3 MinPeers: 2
Relay: true Relay: true
Oracle: Oracle:
Enabled: false Enabled: false

View file

@ -47,7 +47,7 @@ ApplicationConfiguration:
PingTimeout: 90s PingTimeout: 90s
MaxPeers: 10 MaxPeers: 10
AttemptConnPeers: 5 AttemptConnPeers: 5
MinPeers: 3 MinPeers: 2
Relay: true Relay: true
Oracle: Oracle:
Enabled: false Enabled: false

View file

@ -47,7 +47,7 @@ ApplicationConfiguration:
PingTimeout: 90s PingTimeout: 90s
MaxPeers: 10 MaxPeers: 10
AttemptConnPeers: 5 AttemptConnPeers: 5
MinPeers: 3 MinPeers: 2
Relay: true Relay: true
Oracle: Oracle:
Enabled: false Enabled: false

View file

@ -189,10 +189,11 @@ Examples can be found at `config/protocol.privnet.docker.one.yml` (`two`, `three
`UnlockWallet` subsection with `Path` and `Password` strings for NEP-6 `UnlockWallet` subsection with `Path` and `Password` strings for NEP-6
wallet path and the password for the account to be used for the wallet path and the password for the account to be used for the
consensus node. consensus node.
2. Make sure that your `MinPeers` setting is equal to 2. Make sure that your `MinPeers` setting is no more than
the number of nodes participating in consensus. the number of nodes participating in consensus minus one. The
This requirement is needed for nodes to correctly recommended setting is 2F in terms of BFT, that's the minimum number
start and can be weakened in future. the network can operate with (0 for a single node, 2 for 4 CNs, 4 for 7
CNs).
3. Set `Address`, `Port` and `RPC.Port` to the appropriate values. 3. Set `Address`, `Port` and `RPC.Port` to the appropriate values.
They must differ between nodes. They must differ between nodes.
4. If you start binary from the same directory, you will probably want to change 4. If you start binary from the same directory, you will probably want to change