mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-24 22:32:15 +00:00
Several minor docs & spec cleanup (#2330)
* addr_book_strick=false on local nets * link to spec * spec: remove TODO, see #1749 instead * spec: make issues from TODOs * update docs on addr_book_strict option
This commit is contained in:
parent
d0bb1ab2b0
commit
92185c017c
@ -293,6 +293,7 @@ type P2PConfig struct {
|
||||
AddrBook string `mapstructure:"addr_book_file"`
|
||||
|
||||
// Set true for strict address routability rules
|
||||
// Set false for private or local networks
|
||||
AddrBookStrict bool `mapstructure:"addr_book_strict"`
|
||||
|
||||
// Maximum number of inbound peers
|
||||
|
@ -165,6 +165,7 @@ upnp = {{ .P2P.UPNP }}
|
||||
addr_book_file = "{{ js .P2P.AddrBook }}"
|
||||
|
||||
# Set true for strict address routability rules
|
||||
# Set false for private or local networks
|
||||
addr_book_strict = {{ .P2P.AddrBookStrict }}
|
||||
|
||||
# Time to wait before flushing messages out on the connection, in ms
|
||||
|
@ -31,7 +31,7 @@ please submit them to our [bug bounty](https://tendermint.com/security)!
|
||||
- [Block Sync](https://github.com/tendermint/tendermint/tree/master/docs/spec/reactors/block_sync): gossip blocks so peers can catch up quickly
|
||||
- [Consensus](https://github.com/tendermint/tendermint/tree/master/docs/spec/reactors/consensus): gossip votes and block parts so new blocks can be committed
|
||||
- [Mempool](https://github.com/tendermint/tendermint/tree/master/docs/spec/reactors/mempool): gossip transactions so they get included in blocks
|
||||
- Evidence: TODO
|
||||
- Evidence: Forthcoming, see [this issue](https://github.com/tendermint/tendermint/issues/2329).
|
||||
|
||||
### Software
|
||||
|
||||
|
@ -147,7 +147,7 @@ where `Signature` is the DER encoded signature, ie:
|
||||
|
||||
## Evidence
|
||||
|
||||
TODO
|
||||
Forthcoming, see [this issue](https://github.com/tendermint/tendermint/issues/2329)
|
||||
|
||||
## Validation
|
||||
|
||||
|
@ -275,7 +275,7 @@ Because Tendermint only uses a Simple Merkle Tree, application developers are ex
|
||||
|
||||
### Amino
|
||||
|
||||
TODO: improve this
|
||||
This section is pending an update, see [this issue](https://github.com/tendermint/tendermint/issues/1749).
|
||||
|
||||
Amino also supports JSON encoding - registered types are simply encoded as:
|
||||
|
||||
|
@ -11,7 +11,7 @@ included in a block or gossipped over the network, and we never compute
|
||||
its hash. However, the types it contains are part of the specification, since
|
||||
their Merkle roots are included in blocks.
|
||||
|
||||
For details on an implementation of `State` with persistence, see TODO
|
||||
Details on an implementation of `State` with persistence is forthcoming, see [this issue](https://github.com/tendermint/tendermint/issues/1152)
|
||||
|
||||
```go
|
||||
type State struct {
|
||||
@ -77,4 +77,4 @@ func TotalVotingPower(vals []Validators) int64{
|
||||
|
||||
### ConsensusParams
|
||||
|
||||
TODO
|
||||
This section is forthcoming. See [this issue](https://github.com/tendermint/tendermint/issues/1152).
|
||||
|
@ -39,8 +39,3 @@
|
||||
## Block Store
|
||||
|
||||
- persists blocks to disk
|
||||
|
||||
# TODO
|
||||
|
||||
- How does the switch from bcR to conR happen? Does conR persist blocks to disk too?
|
||||
- What is the interaction between the consensus and blockchain reactors?
|
||||
|
@ -112,6 +112,7 @@ upnp = false
|
||||
addr_book_file = "addrbook.json"
|
||||
|
||||
# Set true for strict address routability rules
|
||||
# Set false for private or local networks
|
||||
addr_book_strict = true
|
||||
|
||||
# Time to wait before flushing messages out on the connection, in ms
|
||||
|
@ -270,9 +270,9 @@ saving it to the address book. The address is considered as routable if the IP
|
||||
is [valid and within allowed
|
||||
ranges](https://github.com/tendermint/tendermint/blob/27bd1deabe4ba6a2d9b463b8f3e3f1e31b993e61/p2p/netaddress.go#L209).
|
||||
|
||||
This may not be the case for private networks, where your IP range is usually
|
||||
This may not be the case for private or local networks, where your IP range is usually
|
||||
strictly limited and private. If that case, you need to set `addr_book_strict`
|
||||
to `false` (turn off).
|
||||
to `false` (turn it off).
|
||||
|
||||
- `rpc.max_open_connections`
|
||||
|
||||
|
@ -59,6 +59,10 @@ are connected to at least one validator.
|
||||
|
||||
Authenticated encryption is enabled by default.
|
||||
|
||||
## Specification
|
||||
|
||||
The full p2p specification can be found [here](https://github.com/tendermint/tendermint/tree/master/docs/spec/p2p).
|
||||
|
||||
## Additional Reading
|
||||
|
||||
- [Implementation](https://github.com/tendermint/tendermint/blob/64bae01d007b5bee0d0827ab53259ffd5910b4e6/p2p/conn/secret_connection.go#L47)
|
||||
|
Loading…
x
Reference in New Issue
Block a user