Skip to content

Commit

Permalink
Minor improvements upon review
Browse files Browse the repository at this point in the history
  • Loading branch information
Olshansk committed Dec 10, 2024
1 parent 82c141b commit ec2aecf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,6 @@ echo "source $(pwd)/.env" >> ~/.bashrc
source ~/.bashrc
```

Setup tx parameters:

```bash
export TX_PARAM_FLAGS="--gas=auto --gas-prices=1upokt --gas-adjustment=1.5 --chain-id=pocket-beta --yes"
```

## Start up the full node

:::warning
Expand Down Expand Up @@ -181,7 +175,7 @@ privKey=$(export_priv_key_hex gateway); sed -i "s|GATEWAY_PRIV_KEY_HEX=\".*\"|GA
address=$(poktrolld keys show gateway -a | tr -d '\r'); sed -i "s|GATEWAY_ADDR=\".*\"|GATEWAY_ADDR=\"$address\"|g" .env
```

FINALLY, update the environment variables:
FINALLY, update your environment:

```bash
source .env
Expand Down Expand Up @@ -215,7 +209,7 @@ Stake the supplier:
```bash
sed -i -e s/YOUR_NODE_IP_OR_HOST/$NODE_HOSTNAME/g ./stake_configs/supplier_stake_config_example.yaml
sed -i -e s/YOUR_OWNER_ADDRESS/$SUPPLIER_ADDR/g ./stake_configs/supplier_stake_config_example.yaml
poktrolld tx supplier stake-supplier --config=/poktroll/stake_configs/supplier_stake_config_example.yaml --from=supplier $TX_PARAM_FLAGS
poktrolld tx supplier stake-supplier --config=/poktroll/stake_configs/supplier_stake_config_example.yaml --from=supplier $TX_PARAM_FLAGS_BETA

# OPTIONALLY check the supplier's status
poktrolld query supplier show-supplier $SUPPLIER_ADDR
Expand All @@ -238,7 +232,7 @@ docker logs -f --tail 100 relayminer
Stake the application:

```bash
poktrolld tx application stake-application --config=/poktroll/stake_configs/application_stake_config_example.yaml --from=application $TX_PARAM_FLAGS
poktrolld tx application stake-application --config=/poktroll/stake_configs/application_stake_config_example.yaml --from=application $TX_PARAM_FLAGS_BETA

# OPTIONALLY check the application's status
poktrolld query application show-application $APPLICATION_ADDR
Expand All @@ -247,7 +241,7 @@ poktrolld query application show-application $APPLICATION_ADDR
Stake the gateway:

```bash
poktrolld tx gateway stake-gateway --config=/poktroll/stake_configs/gateway_stake_config_example.yaml --from=gateway $TX_PARAM_FLAGS
poktrolld tx gateway stake-gateway --config=/poktroll/stake_configs/gateway_stake_config_example.yaml --from=gateway $TX_PARAM_FLAGS_BETA

# OPTIONALLY check the application's status
poktrolld query gateway show-gateway $GATEWAY_ADDR
Expand All @@ -256,7 +250,7 @@ poktrolld query gateway show-gateway $GATEWAY_ADDR
Delegate the application to the gateway:

```bash
poktrolld tx application delegate-to-gateway $GATEWAY_ADDR --from=application $TX_PARAM_FLAGS
poktrolld tx application delegate-to-gateway $GATEWAY_ADDR --from=application $TX_PARAM_FLAGS_BETA

# OPTIONALLY check the application's delegation status
poktrolld query application show-application $APPLICATION_ADDR
Expand Down Expand Up @@ -345,14 +339,14 @@ echo $SUPPLIER_ADDR
```bash
# Import the faucet using the mnemonic
poktrolld keys add --recover -i faucet
poktrolld tx bank multi-send faucet $APPLICATION_ADDR $GATEWAY_ADDR $SUPPLIER_ADDR 100000upokt $TX_PARAM_FLAGS
poktrolld tx bank multi-send faucet $APPLICATION_ADDR $GATEWAY_ADDR $SUPPLIER_ADDR 100000upokt $TX_PARAM_FLAGS_BETA
```

### Start the RelayMiner

```bash
# Stake
poktrolld tx supplier stake-supplier --config=/poktroll/stake_configs/supplier_stake_config_example.yaml --from=supplier $TX_PARAM_FLAGS
poktrolld tx supplier stake-supplier --config=/poktroll/stake_configs/supplier_stake_config_example.yaml --from=supplier $TX_PARAM_FLAGS_BETA
# Check
poktrolld query supplier show-supplier $SUPPLIER_ADDR
# Start
Expand All @@ -365,7 +359,7 @@ docker logs -f --tail 100 relayminer

```bash
# Stake
poktrolld tx application stake-application --config=/poktroll/stake_configs/application_stake_config_example.yaml --from=application $TX_PARAM_FLAGS
poktrolld tx application stake-application --config=/poktroll/stake_configs/application_stake_config_example.yaml --from=application $TX_PARAM_FLAGS_BETA
# Check
poktrolld query application show-application $APPLICATION_ADDR
# Start
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,9 @@ create a new user and give it sudo permissions.
This is necessary, in particular, if you want to use [homebrew](https://brew.sh/) [to install `poktrolld`](../user_guide/install.md).

```bash
# Create a new user and give sudo permissions
export USERNAME=olshansky
adduser $USERNAME
usermod -aG sudo,docker $USERNAME
adduser poktroll
usermod -aG docker,sudo poktroll
su - poktroll
```

You can also avoid needing to pass in the password each time by running the following:
Expand All @@ -148,7 +147,7 @@ You can also avoid needing to pass in the password each time by running the foll
vi /etc/sudoers

# Add the following line to the end of the file
olshansky ALL=(ALL) NOPASSWD:ALL
poktroll ALL=(ALL) NOPASSWD:ALL
```

Then, switch to the new user:
Expand Down

0 comments on commit ec2aecf

Please sign in to comment.