Skip to content

Commit

Permalink
Merge pull request #1129 from celestiaorg/jcs/app-updaes
Browse files Browse the repository at this point in the history
chore: Core/App Doc Updates
  • Loading branch information
YazzyYaz authored Oct 11, 2023
2 parents 9939c40 + a7d8562 commit f100193
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 14 deletions.
37 changes: 25 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 Expand Up @@ -593,6 +601,11 @@ will need to run the QGB orchestrator to be able to sign attestations.
To run it, please
[refer to the documentation](https://docs.celestia.org/nodes/qgb-orchestrator/#how-to-run).

#### Submit your validator information

After starting your node, please submit your node as a seed and peer to the
[networks repository](https://github.com/celestiaorg/networks).

## Extra resources for consensus nodes

### Optional: Reset network
Expand Down
3 changes: 1 addition & 2 deletions docs/nodes/instantiate-testnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,7 @@ Run the following command:
```sh
STAKING_AMOUNT=1000000000utia
celestia-appd gentx $KEY_NAME $STAKING_AMOUNT --chain-id $CHAIN_ID \
--keyring-backend test \
--evm-address 0x966e6f22781EF6a6A82BBB4DB3df8E225DfD9488
--keyring-backend test
```

This will create the genesis transaction for your new chain.
Expand Down

0 comments on commit f100193

Please sign in to comment.