Code Monkey home page Code Monkey logo

apex-mainnet-node's Introduction

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>

apex-mainnet-node's People

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.