1: How to Become a Block Producer (Run a TUSC witness Node) : Get the system ready

This guide is based on Linux (Ubuntu 16.04)

There are two ways you can be a Block Producer

Using Docker

  Building from source code (GitHub)

You need to have cli_wallet to create accounts, transfer funds, promote your account to lifetime membership, make your account an block producer

You need to have witness_node to actually producer the block

Setting up Docker

Make sure that your Linux Kernel is 3.0 or greater, docker does not support older Kernel.

Uninstall the old version if it already installed. 

sudo apt-get remove docker docker-engine docker.io containerd runc

Update the system

sudo apt-get update

Install Docker Engine Community 

sudo apt-get install apt-transport-https ca-certificates curl gnupg-agent software-properties-common

Add Docker GRP Key

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

Set up a stable repo

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

Update the system

sudo apt-get update

Install Docker Engine Community

sudo apt-get install docker-ce docker-ce-cli containerd.io

Run the test Docker image

sudo docker run hello-world

This will run the hello world docker container, and shows the message

Hello from Docker!

This message shows that your installation appears to be working correctly.

Run TUSC Cli Wallet Image

sudo docker run -it -P bendubois/tusc-cli-wallet

Once wallet image runs successfully, you will be inside the wallet interface. You will see this message.

Please use the set_password method to initialize a new wallet before continuing

new >>>

How to compile Wallet and Witness Node from GitHub (Build your own, so you don’t have to run Docker)

Build Dependencies

sudo apt-get update

sudo apt-get install autoconf cmake make automake libtool git libboost-all-dev libssl-dev g++ libcurl4-openssl-dev

Build Script

git clone https://github.com/TUSCNetwork/tusc-core.git

cd tusc-core

cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo .

make

It takes few hours to compile, once it is done > you can find wallet_cli and witness inside the programs folder under tusc-core


Second part of the guide will be how to create account and make that account a Witness

Sign In or Register to comment.