You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.2 KiB

7 years ago
7 years ago
7 years ago
7 years ago
  1. # P2P Config
  2. Here we describe configuration options around the Peer Exchange.
  3. ## Seed Mode
  4. `--p2p.seed_mode`
  5. The node operates in seed mode. In seed mode, a node continuously crawls the network for peers,
  6. and upon incoming connection shares some peers and disconnects.
  7. ## Seeds
  8. `--p2p.seeds “1.2.3.4:466656,2.3.4.5:4444”`
  9. Dials these seeds when we need more peers. They should return a list of peers and then disconnect.
  10. If we already have enough peers in the address book, we may never need to dial them.
  11. ## Persistent Peers
  12. `--p2p.persistent_peers “1.2.3.4:46656,2.3.4.5:466656”`
  13. Dial these peers and auto-redial them if the connection fails.
  14. These are intended to be trusted persistent peers that can help
  15. anchor us in the p2p network.
  16. Note that the auto-redial uses exponential backoff and will give up
  17. after a day of trying to connect.
  18. NOTE: If `seeds` and `persistent_peers` intersect,
  19. the user will be WARNED that seeds may auto-close connections
  20. and the node may not be able to keep the connection persistent.
  21. ## Private Persistent Peers
  22. `--p2p.private_persistent_peers “1.2.3.4:46656,2.3.4.5:466656”`
  23. These are persistent peers that we do not add to the address book or
  24. gossip to other peers. They stay private to us.