From 7095f2ebefc3847bced75a57c29823988f875469 Mon Sep 17 00:00:00 2001 From: Nicholas Anello McMillen Date: Wed, 26 Feb 2025 20:15:01 -0800 Subject: [PATCH 1/2] docs: Update consensus-node.md updated the mainnet persistent peers script to include the id and address. --- how-to-guides/consensus-node.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/how-to-guides/consensus-node.md b/how-to-guides/consensus-node.md index c4d4d6d47a6..ab753e003ec 100644 --- a/how-to-guides/consensus-node.md +++ b/how-to-guides/consensus-node.md @@ -114,7 +114,7 @@ repository (for Mainnet Beta) or [@celestiaorg/networks repository](https://gith ::: code-group ```bash-vue [Mainnet Beta] -PERSISTENT_PEERS=$(curl -s https://raw.githubusercontent.com/cosmos/chain-registry/master/{{constants.mainnetChainId}}/chain.json | jq -r '.peers.persistent_peers[].address' | tr '\n' ',' | sed 's/,$/\n/') +PERSISTENT_PEERS=$(curl -s https://raw.githubusercontent.com/cosmos/chain-registry/master/celestia/chain.json | jq -r '.peers.persistent_peers[] | "\(.id)@\(.address)"' | tr '\n' ',' | sed 's/,$/\n/') echo $PERSISTENT_PEERS sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PERSISTENT_PEERS\"/" $HOME/.celestia-app/config/config.toml ``` From 1aff49963dbd5d060a4ed68f3e4c7a4996915b57 Mon Sep 17 00:00:00 2001 From: Josh Stein <46639943+jcstein@users.noreply.github.com> Date: Thu, 27 Feb 2025 12:03:04 -0500 Subject: [PATCH 2/2] Apply suggestions from code review --- how-to-guides/consensus-node.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/how-to-guides/consensus-node.md b/how-to-guides/consensus-node.md index ab753e003ec..db326526821 100644 --- a/how-to-guides/consensus-node.md +++ b/how-to-guides/consensus-node.md @@ -114,7 +114,7 @@ repository (for Mainnet Beta) or [@celestiaorg/networks repository](https://gith ::: code-group ```bash-vue [Mainnet Beta] -PERSISTENT_PEERS=$(curl -s https://raw.githubusercontent.com/cosmos/chain-registry/master/celestia/chain.json | jq -r '.peers.persistent_peers[] | "\(.id)@\(.address)"' | tr '\n' ',' | sed 's/,$/\n/') +PERSISTENT_PEERS=$(curl -s https://raw.githubusercontent.com/cosmos/chain-registry/master/{{constants.mainnetChainId}}/chain.json | jq -r '.peers.persistent_peers[] | "\(.id)@\(.address)"' | tr '\n' ',' | sed 's/,$/\n/') echo $PERSISTENT_PEERS sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PERSISTENT_PEERS\"/" $HOME/.celestia-app/config/config.toml ```