Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add instruction for snapshot #29

Merged
merged 2 commits into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .idea/.gitignore → .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# IDEs
.idea
.vscode
# IDEs
.idea
.vscode
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,26 @@ If you prefer a custom PostgreSQL setup, ensure it meets the requirements specif

### 3. Deploy TSN Node

#### 3.1. Install PSQL

To be able to Snapshot from the network, you need to have `psql` installed on your machine. You can install it by running:

```bash
sudo apt -y install postgresql
```

#### 3.2. Run TSN Binaries
Run the TSN binaries to deploy your node:

```bash
kwild --root-dir ./my-peer-config/
kwild --root-dir ./my-peer-config/ --chain.statesync.enable=true --chain.statesync.rpc-servers='http://18.189.163.27:26657'
```

Ensure your firewall allows incoming connections on the JSON-RPC port (default: 8484) and P2P port (default: 26656).

The `--chain.statesync.enable` and `--chain.statesync.rpc-servers` flags are optional and only needed if you want to enable state sync on your node.
It will help your node to sync faster with the network with the snapshot provided by the RPC servers.

### 4. Become a Validator (Optional)

To upgrade your node to a validator:
Expand Down
Loading