Skip to content

Commit

Permalink
Merge pull request #27 from PowerLoom/snapshotter-lite
Browse files Browse the repository at this point in the history
multi-node setup instructions
  • Loading branch information
SwaroopH authored Apr 9, 2024
2 parents cbcc6e2 + db9a698 commit d0f7616
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ First, clone our multi-node script to get started:
git clone https://github.com/PowerLoom/snapshotter-lite-multi-setup
```

navigate to the directory, type the below command on your terminal:
Navigate to the directory & type the below command on your terminal:

```bash
cd snapshotter-lite-multi-setup
Expand All @@ -587,7 +587,8 @@ It is imperative to create an isolated virtual environment that includes the nec

#### Installing `Pyenv`

Follow the steps below to install `pyenv`. Begin by opening the terminal and executing the command to install the required packages:
Follow the steps below to install `pyenv`.
Open the terminal and execute the below command to install the required packages:

```bash
sudo apt install build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev curl libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev
Expand Down Expand Up @@ -622,7 +623,7 @@ Refresh the terminal by typing:
source ~/.bashrc
```

Now, proceed to install Python 3.11.5:
Next, proceed to install Python 3.11.5:

```bash
pyenv install 3.11.5
Expand Down Expand Up @@ -655,7 +656,7 @@ When you execute `python multi_clone.py`, you will see the following prompts tha

1. **Terminate Existing containers:** "Do you want to kill all running containers and screen sessions of testnet nodes? (y/n) n"

- Type `y` Use this option and stop all active containers or node instances. This will clean up all the older containers. Please cross-check your running containers before executing this command.
- Type `y`. Use this option and stop all active containers or node instances. This will clean up all the older containers. Remember to cross-check your running containers before executing this command.

2. **Custom Slot ID Deployment:** "Do you want to deploy a custom index of slot IDs (indices begin at 0, enter in the format [begin, end])? (indices/n)"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ The `.env` file contains essential configuration details such as `SOURCE_RPC_URL
Change to the directory where your Powerloom Snapshotter Lite Node is located:

```bash
cd powerloom
cd powerloom-testnet
```

3. **Editing the .env File:**
Expand Down Expand Up @@ -98,24 +98,24 @@ For your RPC provider, you have several reliable options, including:
If you wish to perform a complete reset of your node or start afresh with the Snapshotter Lite Node, the following steps will guide you through the process:

1. **Locate the Existing Directory:**
Begin by opening your terminal. Locate the `powerloom` directory by entering the following command:
Begin by opening your terminal. Locate the `powerloom-testnet` directory by entering the following command:

```bash
ls
```

This command lists all files and directories, allowing you to confirm the presence of the `powerloom` directory.
This command lists all files and directories, allowing you to confirm the presence of the `powerloom-testnet` directory.


:::warning Warning
Before proceeding with the directory deletion, it is crucial to ensure that you have securely backed up the private key of your burner wallet.
:::

2. **Remove the Directory:**
To delete the `powerloom` directory and all its contents, use the command:
To delete the `powerloom-testnet` directory and all its contents, use the command:

```bash
rm -rf powerloom
rm -rf powerloom-testnet
```

This action cannot be undone, so ensure that you wish to proceed with the reset.
Expand All @@ -132,7 +132,7 @@ If you're experiencing issues or simply wish to restart your node, the process i
Open a terminal window and navigate to the directory of your Powerloom Snapshotter Node by executing:

```bash
cd powerloom
cd powerloom-testnet
```

2. **Execute the Build Script:**
Expand Down

0 comments on commit d0f7616

Please sign in to comment.