Skip to content

Commit

Permalink
docs: add context on sentry nodes/persistent peers
Browse files Browse the repository at this point in the history
  • Loading branch information
jcstein committed Oct 10, 2023
1 parent 5d9f4a2 commit 5ef48ee
Showing 1 changed file with 20 additions and 12 deletions.
32 changes: 20 additions & 12 deletions docs/nodes/consensus-node.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ description: Learn how to set up a Celestia consensus node.

import constants from "../constants/constants.js";
import InlineText from "@site/src/components/InlineText.js";
import SeedsLink from "@site/src/components/SeedsLink.js";

Full consensus nodes allow you to sync blockchain history in the Celestia
consensus layer.
Expand Down Expand Up @@ -71,23 +70,28 @@ Copy the `genesis.json` file. For Mocha we are using:
cp $HOME/networks/{constants.mochaChainId}/genesis.json $HOME/.celestia-app/config
</code></pre>
<SeedsLink chainId={constants.mochaChainId} />
Set seeds manually in the `$HOME/.celestia-app/config/config.toml` file:
Set seeds in the `$HOME/.celestia-app/config/config.toml` file:
<pre><code>
# Comma separated list of seed nodes to connect to<br/>
seeds = ""
SEEDS=$(curl -sL https://raw.githubusercontent.com/celestiaorg/networks/master/{constants.mochaChainId}/seeds.txt | head -c -1 | tr '\n' ',')<br/>
echo $SEEDS<br/>
sed -i.bak -e "s/^seeds *=.*/seeds = \"$SEEDS\"/" $HOME/.celestia-app/config/config.toml<br/>
</code></pre>
Optionally, you can set peers from the networks repository with the following
commands:
Optionally, you can set persistent peers in your `config.toml` file.
You can get the persistent peers from the networks repository with
the following commands:
:::danger
Setting persistent peers is advised only if you are running a sentry node.
<pre><code>
PERSISTENT_PEERS=$(curl -sL https://raw.githubusercontent.com/celestiaorg/networks/master/{constants.mochaChainId}/peers.txt | head -c -1 | tr '\n' ',')<br/>
echo $PERSISTENT_PEERS<br/>
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PERSISTENT_PEERS\"/" $HOME/.celestia-app/config/config.toml<br/>
</code></pre>
:::
</TabItem>
<TabItem value="arabica" label="Arabica">
Expand All @@ -105,23 +109,27 @@ Copy the `genesis.json` file. For Arabica we are using:
cp $HOME/networks/{constants.arabicaChainId}/genesis.json $HOME/.celestia-app/config
</code></pre>
<SeedsLink chainId={constants.arabicaChainId} />
Set seeds manually in the `$HOME/.celestia-app/config/config.toml` file:
<pre><code>
# Comma separated list of seed nodes to connect to<br/>
seeds = ""
</code></pre>
Optionally, you can set peers from the networks repository with the following
commands:
Optionally, you can set persistent peers in your `config.toml` file.
You can get the persistent peers from the networks repository with
the following commands:
:::danger
Setting persistent peers is advised only if you are running a sentry node.
<pre><code>
PERSISTENT_PEERS=$(curl -sL https://raw.githubusercontent.com/celestiaorg/networks/master/{constants.arabicaChainId}/peers.txt | head -c -1 | tr '\n' ',')<br/>
echo $PERSISTENT_PEERS<br/>
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PERSISTENT_PEERS\"/" $HOME/.celestia-app/config/config.toml<br/>
</code></pre>
:::
</TabItem>
</Tabs>
Expand Down

0 comments on commit 5ef48ee

Please sign in to comment.