MassaLab Testnet Node Tutorial | Update Episode 14.X

By otomatis | pramonoutomo | 23 Jun 2022


807f2e2170cfb395a001a49e6fb090ac39a49e94bb7d06dce793bbec4f0d9953.png

What you need to start?
1. VPS (i suggest using these provider: Vultr/Contabo)
2. Terminal (t'm using termius on my video).
3. FileZilla (or any other SFTP)


How To Start?
1. Login to your vps using Terminal/Putty/Termius
2. follow and use command below:

sudo apt install pkg-config curl git build-essential libssl-dev libclang-dev screen

1*jjdLlvswVEobZ4CmBYB66A.png

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

1*RGjIsftEPjEWEbmCTzwkCg.png

source $HOME/.cargo/env

If success, you should see this on your screen:
1*ozvArTfb80uJJmByuqpSrw.png

check rust version using command below

rustc --version

1*La0phzaLhYHLl3y-zet0JQ.png

rustup toolchain install nightly-2022-07-09

1*Js4WwI9ylvx1hbdncINlgw.png

setting up rust nightly

rustup default nightly-2022-07-09

clone Massa from github

git clone --branch testnet https://github.com/massalabs/massa.git

**select yes / y

1*vBN-WkIIlU0taxF40ZPcKA.png

Open port for node communication

ufw allow 31244 && ufw allow 31245

Next step we are going to make a bootstrap.
connect using SFTP to your node to make it easy.

Open folder "massa" on your root directory.

5134f4a3f5b347be18e7761716c2f8bccf546d85ef02bd1041496e78132475e7.png

Go To massa-node

a5dbff66880620eaafdb9e9f789dccc40d720e6481a51ea91e419b77c2539f31.png

And open config folder.

c512fb34110f9cc889ff7446742d141fac9b318c99209e55a91e28405f6cd5b5.png

inside config folder, create new file (right click, choose create new file) and rename it to "config.toml"

7d410ca86125aaae746d1e9ede4d1f20fbd16754456ee6d9d4433e9ce8d0de8a.png

and paste code below into the file:

[network]
routable_ip = " YOUR_IP "
# SUBSCRIBE TO https://Youtube.com/c/PramonoUtomo for more testnet :)
# list of bootstrap (159.223.59.48, xMH7JJ467UaMkPY2XdnE3zzkSjZ2wAXhhicmUYmpp5DUpiBfp)
[bootstrap]
bootstrap_list = [["158.69.120.215:31245", "P12rPDBmpnpnbECeAKDjbmeR19dYjAUwyLzsa8wmYJnkXLCNF28E"],
	["158.69.23.120:31245", "P1XxexKa3XNzvmakNmPawqFrE9Z2NFhfq1AhvV1Qx4zXq5p1Bp9"],
	["198.27.74.5:31245", "P1qxuqNnx9kyAMYxUfsYiv2gQd5viiBX126SzzexEdbbWd2vQKu"],
	["51.75.60.228:31245", "P13Ykon8Zo73PTKMruLViMMtE2rEG646JQ4sCcee2DnopmVM3P5"],
	["149.202.86.103:31245", "P12UbyLJDS7zimGWf3LTHe8hYY67RdLke1iDRZqJbQQLHQSKPW8j"],
	["54.36.174.177:31245", "P1gEdBVEbRFbBxBtrjcTDDK9JPbJFDay27uiJRE3vmbFAFDKNh7"],
	["149.202.89.125:31245", "P12vxrYTQzS5TRzxLfFNYxn6PyEsphKWkdqx2mVfEuvJ9sPF43uq"],
	["198.27.74.52:31245", "P1hdgsVsd4zkNp8cF1rdqqG6JPRQasAmx12QgJaJHBHFU1fRHEH"],
	["141.94.218.103:31245", "P1VRyXjUaHeJd4Rmr3waVmpZDFzzH5ARRi3f5ye5BYgxBmxHC7X"]]

YOUR_SERVER_IP_HERE = Your VPS IP. (please change it to your own IP) ~

Create new screen called "massa"

screen -S massa

Run massa node

cd massa/massa-node/

RUST_BACKTRACE=full cargo run --release -- -p <YOURPASSWORD> |& tee logs.txt

**change the <YOURPASSWORD> to any password you want.

This will need time to make your nodes running like images below

1*3_mvunfkrtK72rfiEDfoPQ.png

[press CTRL+A+D to minimize the screen

move to massa client folder

cd /root/massa/massa-client/

run massa client

cargo run --release

1*gfOs5uTSzncBOAvbEtKyQg.png

wait till you got somekind like images below

1*O24bL9dKLdeQv9Utynk6cQ.png

Create new private key:

wallet_generate_secret_key

View wallet created

wallet_info

1*8JZuVwtPjLW2vBNtaRPdAg.png

Save all your data, you'll need this later.

Next step, we'll move to discord to claim some testnet tokens.

Join Massa Lab Discord: https://discord.gg/massa

Claim faucet on  #testnet-faucet

8c078bdd1bbdeb198c35808953d5c9392570ea2b4accdabcc3b3312de63bcfd2.png

Simply enter your address to claim on faucet channel.

Check again your balance

wallet_info

Make sure your port are opened. So you're qualified to join the testnet

Go to https://www.yougetsignal.com/tools/open-ports/

and enter your vps ip there.including the port 31244 & 31245.

1*Leh28s5DjXwoT6iFYJhJMg.png

1*mU-1fp_XdvYuImTCn8xkXg.png

Go back to your terminal (massa client)
Buy Rols

buy_rolls (insert your wallet address) 1 0

Add Staking

node_add_staking_secret_keys (YOUR_PRIVATE_KEY)

Check again your wallet to check your rols

wallet_info

1*_IZ7_sEsbYalHqnNZqipEw.png

Then last step is register your IP to the massa bot and verify

DM MassaBot on #testnet-rewards-registration (on discord), just send your vps ip.

700e6b3cbfdce6b60f6d9ffe883f34f9e5c7e3a967fd69f32b734969e495c1f7.png

Go back to your terminal 

node_testnet_rewards_program_ownership_proof Address (your discord account id)

You'll receive some verification hash. Copy it and send to MassaBot.

You can also check your node score on MassBot by sending "info".

 

Thanks to JustinRzx from BeritaCryptoo for creating first tutorial in bahasa indonesia. i have modify some error on code, changing some step and translate it to english :)

 

================

join @codeblocklabs on telegram https://t.me/codeblocklabs 

subscribe to my channel https://youtube.com/c/PramonoUtomo 

================

How do you rate this article?

1



pramonoutomo
pramonoutomo

Hey it's pram here, join my universe https://youtube.com/c/pramonoutomo and https://twitter.com/pramonoutomo also don't forget to check out my portofolio on https://pramonoutomo.com

Publish0x

Send a $0.01 microtip in crypto to the author, and earn yourself as you read!

20% to author / 80% to me.
We pay the tips from our rewards pool.