PLEASE READ: This is the SMOKE TESTNET blockchain. TESTNET SMOKE has NO VALUE!

The Quick and Dirty Smoke Witness Guide 🌱

7 days ago

Recomended minimum specs:

CPU: 1 vCore
RAM: 2048 MB
Storage: 40 GB SSD
OS: Ubuntu 16.04 x64

Hardening your server is highly recommended before setting up your witness.

Follow the security and hardening section of this guide by @bushkill.

On a clean Ubuntu 16.04 x64 installation:

Node Setup:

1. Update ubuntu, download the builds - uncompress them and then remove the compressed files:

apt-get update  

apt-get -y install wget nano screen jq

wget  https://github.com/smokenetwork/smoked/releases/download/v0.0.4/smoked-0.0.4-x86_64-linux.tar.gz
wget  https://github.com/smokenetwork/smoked/releases/download/v0.0.4/cli_wallet-0.0.4-x86_64-linux.tar.gz

tar -xzf smoked-0.0.4-x86_64-linux.tar.gz  
tar -xzf cli_wallet-0.0.4-x86_64-linux.tar.gz

rm *.gz

2. Start and stop smoked twice to create the config file:

./smoked
Control+C
./smoked
Control+C

If you get a error 'locale::facet::_S_create_c_locale name not valid' after first smoked run enter this command:

export LC_ALL=en_US.UTF-8
/// Then repeat step #2

3. Check file has been created:

ls
/// Should return 'smoked cli_wallet witness_node_data_dir'

4. Change files in the config.ini:

nano witness_node_data_dir/config.ini
/// The file will open, 

/// locate seed nodes and add:
seed-node = 163.172.128.38:2001  
seed-node = 51.15.95.123:2001

/// locate ‘#witness =’ line, remove '#' and add your witness name
witness = "account_name" 

/// locate ‘#private-key =’ line, remove '#' and add your private active key
private-key = your_private_active_key

/// Enter Control+X and and then Y to save

5. Run this command to change the 2p2 layer priv key in the config.ini:

sed -i s/\"0000000000000000000000000000000000000000000000000000000000000000\"/$(jq .private_key witness_node_data_dir/p2p/node_config.json)/g witness_node_data_dir/config.ini

6. Start a new witness screen:

screen -S witness

7. Start the node to see if it starts syncing, once synced shut down:

./smoked
Control+C

8. Detach the current (witness) screen:

Control+A+D

Update Witness (cli_wallet):

1. Start a new wallet screen:

screen -S wallet

2. Start the wallet and configure:

./cli_wallet --server-rpc-endpoint="ws://51.15.249.89:8090"

new >>> set_password your_secure_password
locked >>> unlock your_secure_password
unlock >>> import_key private_active_key
unlock >>> update_witness "youraccountname" "https://testnet.smoke.io/@youraccountname" "SMK....your_active_public_key" {} true

3. Detach screen:

Control+A+D

4. Attach witness screen and restart node:

screen -ls
screen -r witness
Control+C
./smoked

Go to https://testnet.smoke.io/~witnesses and vote yourself in.


Thanks to @baabeetaa for the help...

Authors get paid when people like you upvote their post.