Skip to content

PhoenixGlobal/APEX-Mainnet-Node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Relevant Information

1. Client command documentation

For client command documentation take a look at Client Docs

2. Conversion of private keys

If you did generate your miner key over the tracker you will need to convert it from WIF-Format to RAW

  • WIF looks like that:

KxP3w2eTciGTGhNj4FtHvaKD1TVUS4P2pSTLrQx2BLTkzjekFKkp

  • Raw looks like that:

7a93d447bffe6d89e690f529a3a0bdff8ff6169172458e04849ef1d4eafd7f86

Therefore you need to run the client application which can convert your key for you.

After you started the client enter this command for conversion:

chain key -input "your-priv-key"

3. Register your producer node

After you are in sync with the chain you can start with block production. Therefore you must register your node in the network.

The registration can be done with the client application. For the commands needed take a look at Client Docs | Section 7.1

If the registration broadcast was successfull you will be able to vote for your node in the Tracker

4. Running core and client parallel

In order to run multiple applications or keep one application running after exiting the SSH session you need a program that enables you to have multiple terminal instances on your machine. Screen is a good starting point: Screen Tutorial

5. Securing your server

If you are a newbie you should probably learn how to keep your server secure.

This is a good starting point: Securing your Server

Usage

Operating System

Ubuntu 18.04 LTS

1. Install git

sudo apt install git -y

2. Clone the repo

git clone https://github.com/yuomii/APEX-Mainnet-Node.git

3. Change directory

cd APEX-Mainnet-Node

4. Make all provided scripts executable

chmod +x install.sh && chmod +x configure.sh && chmod +x run.sh && chmod +x client.sh && chmod +x firewall.sh

5. Then install the core and the client application

sudo sh install.sh

6. Configure your settings for the Mainnet

Run the script

sh configure.sh -h "your-host-ip" -k "your-producer-key" -t "timestamp" -a "peer-ip-1" -b "peer-ip-2" -n "your-node-name"

You must provide the following parameters for a successfull setup

  • Your own public static IP

-h 142.101.15.14

  • Your miner private key in RAW Format

-k 7a93d447bffe6d89e690f529a3a0bdff8ff6169172458e04849ef1d4eafd7f86

  • The timestamp for the genesis block

-t 2019-05-18T09:05:00Z

  • IP of your first peer node to connect to

-a 71.111.91.7

  • IP of your second peer node to connect to

-b 72.121.61.1

  • The name of your node

-n MyFancyNode

Using the example values above it would be

sh configure.sh -h 142.101.15.14 -k 7a93d447bffe6d89e690f529a3a0bdff8ff6169172458e04849ef1d4eafd7f86 -t 2019-05-18T09:05:00Z -a 71.111.91.7 -b 72.121.61.1 -n MyFancyNode

7. Run the core (Supernode)

It makes sense to run this command in an own screen session. Make sure you are familiar with screen and have it installed on your machine. Screen Tutorial

sh run.sh

8. Run the client (Wallet)

It makes sense to run this command in an own screen session. Make sure you are familiar with screen and have it installed on your machine Screen Tutorial

sh client.sh

9. Enable the firewall

sudo sh firewall.sh -p <your-ssh-port>