-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
123 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
91 changes: 91 additions & 0 deletions
91
pages/docs/ecosystem-roles/validator/systemd/quick-node.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
--- | ||
title: Quickstart | ||
description: Run a Tangle Validator node using systemd. | ||
--- | ||
|
||
# Tangle Validator Quickstart | ||
|
||
<mark>**Caution:** The following guide is only meant as a quickstart for anyone looking to run a tangle node with minimal | ||
config, this guide uses automated keys and it is not recommended to run a validator using this setup long term, refer to [advanced](/docs/ecosystem-roles/validator/systemd/validator-node/) guide | ||
for a more secure long term setup.</mark> | ||
|
||
Before following this guide you should have already set up your machines environment, installed the dependencies, and | ||
compiled the Tangle binary. If you have not done so, please refer to the [Requirements](/docs/ecosystem-roles/validator/requirements/) page. | ||
|
||
|
||
## Standalone Testnet | ||
|
||
### 1. Fetch the tangle binary | ||
|
||
Use the latest release version in the url in place of `<VERSION>`, you can visit [releases](https://github.com/webb-tools/tangle/releases) page to view the latest info | ||
|
||
``` | ||
wget https://github.com/webb-tools/tangle/releases/download/<VERSION>/tangle-standalone-linux-amd64 | ||
``` | ||
|
||
For example, at the time of writing this document, the latest release is v0.4.7 and the link would be as follows | ||
|
||
``` | ||
wget https://github.com/webb-tools/tangle/releases/download/v0.4.7/tangle-standalone-linux-amd64 | ||
``` | ||
|
||
### 2. Start the node binary | ||
|
||
To start the binary you can run the following command (ensure you are in the same folder where tangle-standalone is downloaded) | ||
|
||
Make sure to change the following params before executing the command | ||
|
||
1. `<BASE_PATH>` : This is the path where your chain DB will live | ||
2. `<NODE_NAME>` : This is a unique node name for your node, use a unique name here to help identity your node to other validators and telemetry data | ||
|
||
``` | ||
./tangle-standalone-linux-amd64 \ | ||
--base-path <BASE_PATH> \ | ||
--name <NODE_NAME> \ | ||
--chain tangle-testnet \ | ||
--port 9944 \ | ||
--validator \ | ||
--auto-insert-keys \ | ||
--telemetry-url "wss://telemetry.polkadot.io/submit/ 0" --name <NODE_NAME> | ||
``` | ||
|
||
If the node is running correctly, you should see an output similar to below: | ||
|
||
``` | ||
2023-03-22 14:55:51 Tangle Standalone Node | ||
2023-03-22 14:55:51 ✌️ version 0.1.15-54624e3-aarch64-macos | ||
2023-03-22 14:55:51 ❤️ by Webb Technologies Inc., 2017-2023 | ||
2023-03-22 14:55:51 📋 Chain specification: Tangle Testnet | ||
2023-03-22 14:55:51 🏷 Node name: cooing-morning-2891 | ||
2023-03-22 14:55:51 👤 Role: FULL | ||
2023-03-22 14:55:51 💾 Database: RocksDb at /Users/local/Library/Application Support/tangle-standalone/chains/local_testnet/db/full | ||
2023-03-22 14:55:51 ⛓ Native runtime: tangle-standalone-115 (tangle-standalone-1.tx1.au1) | ||
2023-03-22 14:55:51 Bn254 x5 w3 params | ||
2023-03-22 14:55:51 [0] 💸 generated 5 npos voters, 5 from validators and 0 nominators | ||
2023-03-22 14:55:51 [0] 💸 generated 5 npos targets | ||
2023-03-22 14:55:51 [0] 💸 generated 5 npos voters, 5 from validators and 0 nominators | ||
2023-03-22 14:55:51 [0] 💸 generated 5 npos targets | ||
2023-03-22 14:55:51 [0] 💸 new validator set of size 5 has been processed for era 1 | ||
2023-03-22 14:55:52 🔨 Initializing Genesis block/state (state: 0xfd16…aefd, header-hash: 0x7c05…a27d) | ||
2023-03-22 14:55:52 👴 Loading GRANDPA authority set from genesis on what appears to be first startup. | ||
2023-03-22 14:55:53 Using default protocol ID "sup" because none is configured in the chain specs | ||
2023-03-22 14:55:53 🏷 Local node identity is: 12D3KooWDaeXbqokqvEMqpJsKBvjt9BUz41uP9tzRkYuky1Wat7Z | ||
2023-03-22 14:55:53 💻 Operating system: macos | ||
2023-03-22 14:55:53 💻 CPU architecture: aarch64 | ||
2023-03-22 14:55:53 📦 Highest known block at #0 | ||
2023-03-22 14:55:53 〽️ Prometheus exporter started at 127.0.0.1:9615 | ||
2023-03-22 14:55:53 Running JSON-RPC HTTP server: addr=127.0.0.1:9933, allowed origins=["http://localhost:*", "http://127.0.0.1:*", "https://localhost:*", "https://127.0.0.1:*", "https://polkadot.js.org"] | ||
2023-03-22 14:55:53 Running JSON-RPC WS server: addr=127.0.0.1:9944, allowed origins=["http://localhost:*", "http://127.0.0.1:*", "https://localhost:*", "https://127.0.0.1:*", "https://polkadot.js.org"] | ||
2023-03-22 14:55:53 discovered: 12D3KooWMr4L3Dun4BUyp23HZtLfxoQjR56dDp9eH42Va5X6Hfgi /ip4/192.168.0.125/tcp/30304 | ||
2023-03-22 14:55:53 discovered: 12D3KooWNHhcCUsZTdTkADmDJbSK9YjbtscHHA8R4jvrbGwjPVez /ip4/192.168.0.125/tcp/30305 | ||
2023-03-22 14:55:53 discovered: 12D3KooWMr4L3Dun4BUyp23HZtLfxoQjR56dDp9eH42Va5X6Hfgi /ip4/192.168.88.12/tcp/30304 | ||
2023-03-22 14:55:53 discovered: 12D3KooWNHhcCUsZTdTkADmDJbSK9YjbtscHHA8R4jvrbGwjPVez /ip4/192.168.88.12/tcp/30305 | ||
``` | ||
|
||
**Note** : Since the `--auto-insert-keys` flag was used the logs will print out the keys automatically generated for you, | ||
make sure to note down and keep this safely, in case you need to migrate or restart your node, these keys are essential. | ||
|
||
Congratulations! You have officially setup an Tangle Network node. The quickstart is only meant as a quickstart for anyone looking to run a tangle node with minimal | ||
config, this guide uses automated keys and it is not recommended to run a validator using this setup long term, refer to [advanced](/docs/ecosystem-roles/validator/systemd/validator-node/) guide | ||
for a more secure long term setup.. If you are interested | ||
in learning how to setup monitoring for your node, please refer to the [monitoring](../monitoring/quickstart.mdx) page. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters