Skip to content

Running full node

sn-ntu edited this page Mar 27, 2020 · 2 revisions

Running full node

Requirements

  • 16 cores CPU
  • 32GB of RAM
  • SSD storage

1. Install OpenJDK 8

sudo apt-get update
sudo apt-get install openjdk-8-jre

Check if openjdk was installed successfully

java -version

Output:

openjdk version "1.8.0_212"
OpenJDK Runtime Environment (build 1.8.0_212-8u212-b03-0ubuntu1.18.04.1-b03)
OpenJDK 64-Bit Server VM (build 25.212-b03, mixed mode)

2. Download executable JAR

wget https://github.com/MidasCore/java-mcashchain/releases/download/v0.2.0/FullNode.jar -o FullNode.jar

3. Download config file (mainnet)

wget https://github.com/MidasCore/java-mcashchain/releases/download/v0.2.0/config.conf -o config.conf

4. Run full node

nohup java -jar FullNode.jar -p your_supernode_private_key --witness -c config.conf > /dev/null 2>&1 &

Stop full node

kill `ps -ef | grep  FullNode.jar | grep java | grep -v grep | awk '{print $2}'`