github.com/vipernet-xyz/tm@v0.34.24/spec/p2p/config.md (about)

     1  # P2P Config
     2  
     3  Here we describe configuration options around the Peer Exchange.
     4  These can be set using flags or via the `$TMHOME/config/config.toml` file.
     5  
     6  ## Seed Mode
     7  
     8  `--p2p.seed_mode`
     9  
    10  The node operates in seed mode. In seed mode, a node continuously crawls the network for peers,
    11  and upon incoming connection shares some peers and disconnects.
    12  
    13  ## Seeds
    14  
    15  `--p2p.seeds “id100000000000000000000000000000000@1.2.3.4:26656,id200000000000000000000000000000000@2.3.4.5:4444”`
    16  
    17  Dials these seeds when we need more peers. They should return a list of peers and then disconnect.
    18  If we already have enough peers in the address book, we may never need to dial them.
    19  
    20  ## Persistent Peers
    21  
    22  `--p2p.persistent_peers “id100000000000000000000000000000000@1.2.3.4:26656,id200000000000000000000000000000000@2.3.4.5:26656”`
    23  
    24  Dial these peers and auto-redial them if the connection fails.
    25  These are intended to be trusted persistent peers that can help
    26  anchor us in the p2p network. The auto-redial uses exponential
    27  backoff and will give up after a day of trying to connect.
    28  
    29  But If `persistent_peers_max_dial_period` is set greater than zero,
    30  pause between each dial to each persistent peer will not exceed `persistent_peers_max_dial_period`
    31  during exponential backoff and we keep trying again without giving up
    32  
    33  **Note:** If `seeds` and `persistent_peers` intersect,
    34  the user will be warned that seeds may auto-close connections
    35  and that the node may not be able to keep the connection persistent.
    36  
    37  ## Private Peers
    38  
    39  `--p2p.private_peer_ids “id100000000000000000000000000000000,id200000000000000000000000000000000”`
    40  
    41  These are IDs of the peers that we do not add to the address book or gossip to
    42  other peers. They stay private to us.
    43  
    44  ## Unconditional Peers
    45  
    46  `--p2p.unconditional_peer_ids “id100000000000000000000000000000000,id200000000000000000000000000000000”`
    47  
    48  These are IDs of the peers which are allowed to be connected by both inbound or outbound regardless of
    49  `max_num_inbound_peers` or `max_num_outbound_peers` of user's node reached or not.