Node set up

circle-check
circle-exclamation

Setting up an environment:

sudo apt-get update
curl https://getsubstrate.io -sSf | bash -s -- --fast 
source ~/.cargo/env

Clone repo and build the node:

git clone https://github.com/galacticcouncil/HydraDX-node.git
cd HydraDX-node
cargo build --release

If you get an error that git is not installed on your system, install it:

sudo apt install git

To run a benchmark Python 3.8+ is required.‌

Installing Python 3.9:

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python3.9

If you have problems installing via apt you can compile python3.9 from source according to the guidearrow-up-right.‌

If you have different versions of Python installed and the benchmark runs on the old one by default, you can specify which version to use to run it:

Run the benchmark:

If you get an error Toolchain ...... Nightly toolchain required:

After a few minutes you will get a result like:

If all 3 results are OK, your server has successfully passed the test and is ready to start the node.

circle-check

As a test, you can run a stakenet node in the lerna chain.

circle-info

I recommend using tmux or systemd

If you want to set a name for your node (by default, a random one is generated on every startup), use the --name key:

I will really appreciate it if you include the #NodeBook hashtag in the node name :)

The list of nodes in the network can be found herearrow-up-right.‌

If your node is running "strange", you can restart it and display the logs to identify problems:

Last updated