Skip to content

Commit

Permalink
docs: updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jcstein committed Nov 28, 2024
1 parent e845564 commit 4fc6552
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
21 changes: 17 additions & 4 deletions how-to-guides/local-testnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,21 @@ This guide walks through setting up a local Celestia testnet with a validator no
- celestia-app installed (based on [compatible versions](./participate.md))
- celestia node binary installed
- jq installed
- nc (netcat) installed

## Starting the validator node
## Bash script

This method will start up the testnet with a bash script. It still assumes you have the prerequisites installed.

```bash
bash -c "$(curl -sL https://docs.celestia.org/start-local.sh)"
```

To interact with the nodes, you can use the `celestia` and `celestia-appd` CLIs. Use the [funding and testing](#funding-and-testing) section below as a guide.

## Manual setup

### Starting the validator node

First, navigate to the celestia-app scripts directory and run the single node script:

Expand All @@ -17,7 +30,7 @@ cd celestia-app/scripts
bash single-node.sh
```

## Setting up the bridge node
### Setting up the bridge node

Once your validator node is running, get the genesis block hash:

Expand Down Expand Up @@ -58,7 +71,7 @@ celestia bridge start \
--p2p.network test
```

## Setting up the light node
### Setting up the light node

In a new terminal, set the same environment variable:

Expand Down Expand Up @@ -111,7 +124,7 @@ celestia light start \
--rpc.port 42069
```

## Funding and testing
### Funding and testing

Get the bridge node's account address:

Expand Down
3 changes: 0 additions & 3 deletions public/start-local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,6 @@ celestia bridge start \
--p2p.network test &
wait_for_service 2121 "bridge node"

echo "Waiting for bridge node to sync..."
sleep 10

# Get bridge node info
echo "Getting bridge node peer info..."
BRIDGE_INFO=$(celestia p2p info --node.store "$HOME/.celestia-custom-bridge")
Expand Down

0 comments on commit 4fc6552

Please sign in to comment.