Welcome back to our "Potential Airdrops" series with today's candidate: Massa Labs
We will provide our own testnode, which will involve costs for a Virtual Private Server (VPS). Furthermore, Unix/Linux skills are an advantage, but not a must.

Update 05/23:
Testnet EP21 has finished. EP22 will start around 10th May 2023, prepare/update your node and wait for further instructions in Discord.
EP22 has started! Prepare your nodes as scoring will start soon.


Massa Labs: A Blockchain Solution to the Scaling Problem

Massa Labs has designed a new blockchain architecture called Blockclique that can handle high transaction throughputs while maintaining decentralization and security. With Blockclique's transaction sharding in a multithreaded block graph, the system can scale up to 10.000 transactions per second. This capacity is comparable to traditional financial systems. Interested parties can also interact with the live testnet.

Current blockchains cannot handle high transaction throughputs similar to classical financial solutions. For instance, Bitcoin allows for only 5 transactions per second, while Ethereum allows for 15-20 transactions per second. In contrast, the VISA system processed 111 billion transactions in 2017 at an average of 3.500 transactions per second. That highlights the limitations of current blockchains stemming from their design, which makes consensus challenging. The Nakamoto consensus rule rates each chain of the block tree by assigning it a scalar fitness, and produces new blocks by extending the chain of maximum fitness.

Increasing the transaction rate in a naive way by increasing the block frequency or size is not effective. Increasing block frequency or size leads to nodes creating many incompatible blocks, resulting in high fork rates and consensus failures. However, Massa's Blockclique architecture offers a solution to this problem. Massa extended the Nakamoto consensus rule to the case of parallel blocks, enabling a secure and decentralized consensus using Proof-of-Stake.

Overall, Massa's new blockchain architecture can handle thousands of transactions per second, providing a viable alternative to classical financial solutions.

Documentation
Explorer

Social Media

@MassaLabs
Discord

Requirements

PuTTY

- Own VPS server (Your private server, which will host your testnode)

This tutorial has been done using Contabo VPS (minimum Cloud VPS S, 4 vCPU Cores, 8GB RAM, 200GB SSD) with Ubuntu OS
If you also choose Contabo, register, get your VPS, and wait for your confirmation mail, including your login data.

- PuTTY (Tool to connect to your VPS)

PuTTY is an alternative to telnet clients. Its primary advantage is that SSH provides a secure, encrypted connection to the remote system.

Tasks

The individual commands can be copied/pasted 1-to-1 and executed. If confirmation is necessary, this can be confirmed with y/Y.

- Open PuTTY and connect to your VPS IP
- Login with "root" and your chosen PW

VPS Preperation

sudo apt update && apt upgrade -y
apt-get install libclang-dev
sudo apt install screen
sudo apt install pkg-config curl git build-essential libssl-dev
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source $HOME/.cargo/env
rustup toolchain install nightly
rustup default nightly

Install Node

git clone --branch testnet https://github.com/massalabs/massa.git
cd massa/massa-node/
screen -S massa_node

"screen" will create a tab for our node logs we can use later on.

Running the Node (getting the latest Bootstrap)

RUST_BACKTRACE=full cargo run --release -- -p YOUR_PW|& tee logs.txt

Exchange YOUR_PW with a password of your choice and make sure to note it down.

This task will take a while, be patient and wait until you see something like this, which will confirm your node is running:
If it fails for any reason, try it again with the above command.

Bootstrap

For now, press CTRL + A + D (all together), to get back to your command prompt.

Client Installation

cd $HOME
cd massa/massa-client/
screen -S massa_client

"screen" will create a tab for our client logs we can use later on.

cargo run --release

Wait until you see your command prompt and continue with:

Node started

Wallet

wallet_generate_secret_key

Choose and enter your wallet password (it will be hidden while you enter it) and make sure to note it down.

wallet_info

This will show your wallet address, balance, and stacking information.
Make sure to note down your wallet address and insert it every time you see YOUR_WALLET_ADDRESS in any commands

wallet_info

The next step is to join the Massa Labs Discord and get some testnet tokens. Head to the "testnet-faucet" channel and just paste YOUR_WALLET_ADDRESS.
A rocket sign under your message will confirm the request.

Back to PuTTY, just enter wallet_info and you should see a new balance.

wallet_get_secret_key YOUR_WALLET_ADDRESS

Make sure to note down your secret key

Faucet

Next, we will get some testnet tokens we can play with.
Option 1 is via Discord, go to the testnet-faucet channel and simple send your wallet address.
A rocket sign under your message will confirm the request.
Option 2 is via Massa alternate faucet

Proof your balance with wallet_info

Staking

buy_rolls YOUR_WALLET_ADDRESS 1 0
node_start_staking YOUR_WALLET_ADDRESS

When checking with wallet_info, you should so your Rolls did change to final=1 and candidate=1.

Routing / Firewall Configuration

cd $home

apt install ufw -y 
ufw allow ssh 
ufw allow https 
ufw allow http 
ufw allow 31244
ufw allow 31245
ufw enable

The last code block can be copied/executed all at once.

cd massa/massa-node/config
sudo apt-get install nano
nano config.toml

This will install the Nano editor and start editing the config.toml file.
Edit the file and make sure to insert your correct VPS IP.

nano

Press CTRL + X, confirm with Y, and Enter

Connect with Discord

Back to Discord, go to the TestNet rewards channel, and react to the first message with thumps-up emoji.
You'll get a DM from the MassaBot, including a proof command. Copy the command and insert YOUR_WALLET_ADDRESS.

node_testnet_rewards_program_ownership_proof YOUR_WALLET_ADDRESS 922563849134161961

Back to PuTTY

cd $home
cd massa/massa-client/
cargo run -- --wallet wallet.dat

Wait until you see your command prompt and continue pasting your modified proof command from the Discord bot.
The last step is to link your VPS IP. To do so, just send the IP to the Discord bot.

How to check the status of my node?

get_status

Via Discord Bot:
Write "info" to get the current status

Directly via PuTTY:

  1. If you are on the node and "command >" is displayed:
    wallet_info (Get current wallet information)
    get_status (Get current node status)
  2. If you are re-connecting to your VPS (VPS has not been restarted):
    You can use the previously created screen sessions with:
    screen -x massa_client
    screen -x massa_node
  3. If the above options are not working for any reason, you may need to update or start your node first:
    This will also be needed if your VPS has been restarted.
    cd $home
    cd massa/massa-node/
    screen -S massa_node
    RUST_BACKTRACE=full cargo run --release -- -p YOUR_PW|& tee logs.txt
    CTRL + A + D (all together)
    cd $home
    cd massa/massa-client/
    screen -S massa_client 
    cargo run -- --wallet wallet.dat

    If you see something like mentioned in "Running the Node (getting the latest Bootstrap)",
    your node is up and running.

Hint

You can switch between your active screens with:
screen -x massa_client
screen -x massa_node
CTRL + A + D (all together) to exit

I would recommend checking the node regularly for functionality. From time to time an update or restart could be necessary.
If you still encounter problems, the Discord mods are very helpful in solving them.

Zealy Quests

Complete various tasks to increase your lvl.

MassaLabs

 

You should always keep in mind that the various actions are usually not a guarantee for an airdrop or any reward.

Similar Articles

Cryptocurrencies & Security: The Basics
Cryptocurrencies & Security: The Basics

Anyone who deals with cryptocurrencies has probably already asked themselves about security overall and how to secure their investment and protect it from scammers and hackers.

MyEtherWallet: A small introduction

MyEtherWallet is a free open-source project. It provides the user with an interface for the Ethereum blockchain. Through this interface to the ETH Blockchain, it is possible to gain an insight into the transactions made there.

Potential Airdrops
Potential Airdrops: All you need to know

Potential Airdrops - be one of the first and you might get great rewards.

Generate Passive Income Cryptocurrencies
How To Generate Passive Income with Cryptocurrencies!

Generating passive income with cryptocurrency is an effective way of making money today. There are several ways to achieve this, which merely require you to park your crypto assets and reap significant returns on them.