Skip to content

Commit

Permalink
--wip-- [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
okdas committed Nov 25, 2024
1 parent 25243bf commit bcc5f70
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
1 change: 1 addition & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ sudo apt-get update
if command -v ufw > /dev/null 2>&1; then
sudo ufw allow from 172.16.0.0/12
sudo ufw allow from 192.168.0.0/16
echo "UFW rules added for Docker networks"
echo "UFW rules added for Docker networks and validator endpoint"
else
echo "UFW is not installed, skipping firewall configuration"
fi
Expand All @@ -97,9 +97,18 @@ cd poktroll-docker-compose-example

## Update your environment

First, copy the sample environment file:
```bash
cp .env.sample .env
```

By default, the `.env` file uses `testnet-beta`. If you want to use a different network, update the `NETWORK_NAME` in your `.env` file to one of:
- `testnet-alpha` - Unstable testnet
- `testnet-beta` - Stable testnet (default)
- `mainnet` - Production network

Then set your external IP and source the environment:
```bash
EXTERNAL_IP=$(curl -4 ifconfig.me/ip)
sed -i -e s/NODE_HOSTNAME=/NODE_HOSTNAME=$EXTERNAL_IP/g .env

Expand Down Expand Up @@ -153,15 +162,19 @@ FINALLY, `source .env` to update the environment variables.

## Fund your accounts

Run the following:
Run the following to see your addresses:

```bash
show_actor_addresses
```

For each one, fund the accounts using the [faucet](https://faucet.testnet.pokt.network/)
Get the faucet URL for your network:

```bash
show_faucet_url
```

Next, run this helper (it's part of `helpers.sh`) to find each of them on the explorer:
Fund each address using the faucet URL shown above. Then run this helper to find each account on the explorer:

```bash
show_explorer_urls
Expand Down

0 comments on commit bcc5f70

Please sign in to comment.