Random Number Generator (RNG)
Other Documentation
Setting up a Witness Node
This is an introduction for new Witnesses to get up to speed on the Peerplays blockchain. It is intended for Witnesses planning to join a live, already deployed, blockchain.
The following repository should be used in support of this document:
GitHub - peerplays-network/peerplays: The Peerplays Blockchain
GitHub

Building on Ubuntu 18.04 LTS and Installation Instructions

Installing using Docker

This Docker image can be installed as an alternative to the previous steps. It doesn't need to be run if those steps have already been completed.

Upgrading A Peerplays Witness Node

To minimize downtime of your Peerplays Witness node when upgrading, it's recommended to create a backup Witness server.

CLI Wallet Setup

The next step is to set up the CLI Wallet.

Auto-Starting the Witness Node

It's important for your Witness node to start when your system boots up. The filepaths here assume that you installed your witness into /home/ubuntu/peerplays
Step 1. Create a log file to hold your stdout/err logging
1
sudo touch /var/log/peerplays.log
Copied!
Step 2. Save this file in your Peerplays directory. vi /home/ubuntu/peerplays/start.sh
1
#!/bin/bash
2
3
cd /home/ubuntu/peerplays
4
./programs/witness_node/witness_node &> /var/log/peerplays.log
Copied!
Step 3. Make it executable
1
chmod 744 /home/ubuntu/peerplays/start.sh
Copied!
Step 4. Create this file: sudo vi /etc/systemd/system/peerplays.service
Note: Check the path for start.sh, if necessary, change it to match where your start.sh file actually is.
1
[Unit]
2
Description=Peerplays Witness
3
After=network.target
4
5
[Service]
6
ExecStart=/home/ubuntu/peerplays/start.sh
7
8
[Install]
9
WantedBy = multi-user.target
Copied!
Step 5. Enable the service
1
sudo systemctl enable peerplays.service
Copied!
Important: Make sure you don't get any errors.
1
sudo systemctl status peerplays.service
Copied!
Step 6. Stop your Witness node, if it's currently running, then start it with the service.
1
sudo systemctl start peerplays.service
Copied!
Step 7. Check your logfile for entries
1
tail -f /var/log/peerplays.log
Copied!

BOS and MINT Setup

All Witnesses are also required to install and run the Bookie Oracle Suite (BOS) and the supporting manual intervention tool (MINT).