🖥️Installation

How to install Impact Protocol Node in your server.

Install Dependencies

Skip this step if you're already run Impact Protocol before. Run this command if you're using new server. Make sure you use this command one by one.

sudo apt-get update
sudo apt install --assume-yes git clang curl libssl-dev llvm libudev-dev make protobuf-compiler
sudo apt install build-essential
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env
rustc --version
rustup default stable
rustup update
rustup update nightly
rustup target add wasm32-unknown-unknown --toolchain nightly
rustup show
rustup +nightly show

Install Impact Protocol

  • Remove old folder

rm -rf impactprotocol
  • Clone repository

git clone https://github.com/GlobalBoost/impactprotocol
  • Go the folder

cd impactprotocol
  • Build

It will take some time to build, it depend on your server specs.

cargo build --release
  • Copy impact binary to system

sudo cp $HOME/impactprotocol/target/release/impact /usr/local/bin/
  • Remove old data chain

Change the --base-path directory with your own folder name. It depend what is your directory name that you run before. Skip this step if you're running on new server.

impact purge-chain --chain=impact-testnet --base-path /tmp/impactnode
  • Generate mining key

Skip this step if you're already have account before.

impact generate-mining-key --chain=impact-testnet
  • Import mining key

Change <seed_phrase> with your seed phrase.

impact import-mining-key <seed_phrase> \--base-path /tmp/impactnode \--chain=impact-testnet
  • Create Impact as a service

Change the "xxx" with your own data. --author is your public key, you can find it when you import the mining key before.

--name is your node name.

impact.service
sudo tee /etc/systemd/system/impact.service > /dev/null << EOF
[Unit]
Description=Impact Protocol Node
After=network-online.target

[Service]
User=$USER
Restart=on-failure
RestartSec=10
ExecStart=$(which impact) \
--base-path /tmp/impactnode \
--chain=impact-testnet \
--port 30333 \
--ws-port 9945 \
--rpc-port 9933 \
--telemetry-url "wss://telemetry.polkadot.io/submit/ 0" \
--validator \
--author xxx \
--rpc-methods Unsafe \
--name "xxx"

[Install]
WantedBy=multi-user.target
EOF
  • Refresh the service and start

sudo systemctl daemon-reload
sudo systemctl start impact
  • Check your logs

journalctl -fu impact -o cat

Last updated