Skip to content

Commit

Permalink
Merge pull request #733 from sirouk/main
Browse files Browse the repository at this point in the history
Update Persistent Peers
  • Loading branch information
brentstone authored Dec 2, 2024
2 parents cfe7455 + 65ca371 commit fa7ab1b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
15 changes: 12 additions & 3 deletions MAINNET-GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,21 @@ export CHAIN_ID=namada.5f5de2dd1b88cba30586420
namadac utils join-network --chain-id $CHAIN_ID --genesis-validator $VALIDATOR_ALIAS
```

6. Add some persistent peers to your `config.toml` file. First, select from the published list of peers at the bottom of this page. Then, open your node's configuration located at `$BASE_DIR/$CHAIN_ID/config.toml` and find the field `persistent_peers` (which should be empty). Add peers in the format `tcp://<node id>@<IP address>:<port>` separated by commas. Aim to add about 10 persistent peers to your config.
6. Add some persistent peers to your `config.toml` file. First, select from the published list of peers at the bottom of this page. Then, open your node's configuration located at `$BASE_DIR/$CHAIN_ID/config.toml` and find the field `persistent_peers` (which should be empty). Add peers in the format `tcp://<node id>@<IP address>:<port>` separated by commas. Aim to add about 10 persistent peers to your config.

**Example on Ubuntu:**
In the file `~/.local/share/namada/$CHAIN_ID/config.toml`
Add peers following this format (more peers can be found at the bottom of this page):
Add peers following this format (you can contribute your peers with the instructions found at the bottom of this page):
```
persistent_peers = "tcp://[email protected]:26656,tcp://[email protected]:26656,tcp://[email protected]:46656"
```
persistent_peers = "tcp://[email protected]:26656,tcp://[email protected]:46656"
This can be done by executing the following examle command (replace addresses with your actual desired peers):
```bash
sed -i 's#persistent_peers = ".*"#persistent_peers = "'\
'tcp://[email protected]:26656,'\
'tcp://[email protected]:26656,'\
'tcp://[email protected]:46656'\
'"#' $HOME/.local/share/namada/namada.5f5de2dd1b88cba30586420/config.toml
```

7. Start *before genesis time* and leave it running -- at genesis time, it will become active. Start your node using the command
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ The guide with instructions to join the network is located inside [here](./MAINN
### Seed nodes

### Peers
- tcp://[email protected]:26656
- tcp://[email protected]:26656
- tcp://[email protected]:46656

## Voting power distribution

Expand Down

0 comments on commit fa7ab1b

Please sign in to comment.