mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-16 16:41:20 +00:00
40 lines
1.2 KiB
Markdown
40 lines
1.2 KiB
Markdown
|
# P2P Config
|
||
|
|
||
|
Here we describe configuration options around the Peer Exchange.
|
||
|
|
||
|
## Seed Mode
|
||
|
|
||
|
`--p2p.seed_mode`
|
||
|
|
||
|
The node operates in seed mode. It will kick incoming peers after sharing some peers.
|
||
|
It will continually crawl the network for peers.
|
||
|
|
||
|
## Seeds
|
||
|
|
||
|
`--p2p.seeds “1.2.3.4:466656,2.3.4.5:4444”`
|
||
|
|
||
|
Dials these seeds when we need more peers. They will return a list of peers and then disconnect.
|
||
|
If we already have enough peers in the address book, we may never need to dial them.
|
||
|
|
||
|
## Persistent Peers
|
||
|
|
||
|
`--p2p.persistent_peers “1.2.3.4:46656,2.3.4.5:466656”`
|
||
|
|
||
|
Dial these peers and auto-redial them if the connection fails.
|
||
|
These are intended to be trusted persistent peers that can help
|
||
|
anchor us in the p2p network.
|
||
|
|
||
|
Note that the auto-redial uses exponential backoff and will give up
|
||
|
after a day of trying to connect.
|
||
|
|
||
|
NOTE: If `dial_seeds` and `persistent_peers` intersect,
|
||
|
the user will be WARNED that seeds may auto-close connections
|
||
|
and the node may not be able to keep the connection persistent.
|
||
|
|
||
|
## Private Persistent Peers
|
||
|
|
||
|
`--p2p.private_persistent_peers “1.2.3.4:46656,2.3.4.5:466656”`
|
||
|
|
||
|
These are persistent peers that we do not add to the address book or
|
||
|
gossip to other peers. They stay private to us.
|