Skip to content

Commit

Permalink
docs: update peers info (#104)
Browse files Browse the repository at this point in the history
Co-authored-by: Tom <[email protected]>
  • Loading branch information
qubelabsio and GAtom22 authored Jul 24, 2023
1 parent 26883d9 commit 6de8539
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions docs/validate/mainnet.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -121,22 +121,7 @@ For more information on seeds and peers, you can the Tendermint [P2P documentati

We can set the [`persistent_peers`](https://docs.tendermint.com/v0.34/tendermint-core/using-tendermint.html#persistent-peer)
field in `~/.evmosd/config/config.toml` to specify peers that your node will maintain persistent
connections with. You can retrieve them from the list of
available peers on the [`mainnet`](https://github.com/evmos/mainnet) repo.

A list of available persistent peers is also available in the `#find-peers` channel in the [Evmos Discord](https://discord.gg/evmos).
You can get a random 10 entries from the `peers.txt` file in the `PEERS` variable by running
the following command:

```bash
PEERS=`curl -sL https://raw.githubusercontent.com/evmos/mainnet/main/evmos_9001-2/peers.txt | sort -R | head -n 10 | awk '{print $1}' | paste -s -d, -`
```

Use `sed` to include them into the configuration. You can also add them manually:

```bash
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" ~/.evmosd/config/config.toml
```
connections with.

## Run a Mainnet Validator

Expand Down

0 comments on commit 6de8539

Please sign in to comment.