From 9926031ac655d05f051582e948912ff415e80635 Mon Sep 17 00:00:00 2001 From: "joshcs.eth" <46639943+jcstein@users.noreply.github.com> Date: Wed, 4 Oct 2023 12:26:56 -0400 Subject: [PATCH] add changes from #1083 --- docs/nodes/consensus-node.mdx | 44 ++++++++++++++++++++++++++++++----- 1 file changed, 38 insertions(+), 6 deletions(-) diff --git a/docs/nodes/consensus-node.mdx b/docs/nodes/consensus-node.mdx index 910eff561ce..b5ad4f5966e 100644 --- a/docs/nodes/consensus-node.mdx +++ b/docs/nodes/consensus-node.mdx @@ -67,7 +67,7 @@ Keep in mind that this might change if a new testnet is deployed. celestia-appd init "node-name" --chain-id {constants.mochaChainId} -Copy the `genesis.json` file. For mocha we are using: +Copy the `genesis.json` file. For Mocha we are using:
cp $HOME/networks/{constants.mochaChainId}/genesis.json $HOME/.celestia-app/config
@@ -82,6 +82,15 @@ Set seeds manually in the `$HOME/.celestia-app/config/config.toml` file:
seeds = ""
+Optionally, you can set peers from the networks repository with the following
+commands:
+
+
+PERSISTENT_PEERS=$(curl -sL https://raw.githubusercontent.com/celestiaorg/networks/master/{constants.mochaChainId}/peers.txt | head -c -1 | tr '\n' ',')
+echo $PERSISTENT_PEERS
+sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PERSISTENT_PEERS\"/" $HOME/.celestia-app/config/config.toml
+
+
cp $HOME/networks/{constants.arabicaChainId}/genesis.json $HOME/.celestia-app/config
-Set seeds and peers:
+
-PERSISTENT_PEERS=$(curl -sL https://raw.githubusercontent.com/celestiaorg/networks/master/{constants.arabicaChainId}/peers.txt | tr -d '\n')
+# Comma separated list of seed nodes to connect to
+seeds = ""
+
+
+Optionally, you can set peers from the networks repository with the following
+commands:
+
+
+PERSISTENT_PEERS=$(curl -sL https://raw.githubusercontent.com/celestiaorg/networks/master/{constants.arabicaChainId}/peers.txt | head -c -1 | tr '\n' ',')
echo $PERSISTENT_PEERS
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PERSISTENT_PEERS\"/" $HOME/.celestia-app/config/config.toml
-