Code Monkey home page Code Monkey logo

go-node's Introduction

Decimal Go Node

Requirements

To install building essentials (which include make) use following commands:

# Ubuntu:
sudo apt-get install build-essential

# macOS:
brew install coreutils

Installing

You can get latest binary files for your OS using this url: https://repo.decimalchain.com/ $update_block(you can get this variable using this url: https://repo.decimalchain.com/update_block.txt)

You can also build binaries from source:

Clone repository

git clone https://bitbucket.org/decimalteam/go-node.git
cd go-node

To run deccli (Decimal Client Console) and decd (Decimal Go Node) commands from any location on your server set their installation path.
Use your preferred editor to open .profile, which is stored in your user’s home directory. Here, we’ll use nano:

sudo nano ~/.profile

Then, add the following information to the end of this file:

#default install path of the binary file
export PATH=$PATH:~/go/bin

Next, refresh your profile by running the following command:

source ~/.profile

Build and install Decimal Go Node from source code

make all

Confirm decd and deccli are built and installed properly. For that use help command to retrieve decd and deccli usage information

decd --help
deccli --help

Configuring

First of all, make sure directory at path "$HOME/.decimal/daemon" does not exist.

WARNING It will remove your current Decimal blockchain state if exists!

rm -rf "$HOME/.decimal/daemon"

Time to determine proper chain ID currently used in the network and initialize new Decimal network node

NODE_MONIKER="$USER-node" # You are free to choose other name for your node
CHAIN_ID="$(curl -s 'https://mainnet-gate.decimalchain.com/api/rpc/genesis/chain')"
decd init "$NODE_MONIKER" --network mainnet --chain-id "$CHAIN_ID"

Download proper genesis.json from master node

curl -s 'https://mainnet-gate.decimalchain.com/api/rpc/genesis' | jq '.result.genesis' > "$HOME/.decimal/daemon/config/genesis.json"

Sync your Node

Download Decimal Node backup for mainnet using rsync:

#rsync -avPh rsync://rsync-mainnet.decimalchain.com:10000/hourly-data/ ~centos/.decimal/daemon/data/ --delete

Running

To run Decimal node it is enough to exec command

decd start

Decimal node required some time to sync blockchain on new deployed node so it is time to take a breath. Enjoy!

Validating

Once your Decimal node is synced and in actual state, it becomes possible to participate in block generating process and earn some coins.

TODO: To be continued...

go-node's People

Contributors

kzharkov avatar wardencliffe avatar mdenushev avatar sanadar avatar mvvershinin avatar timofvy avatar isteb4k avatar tibetan-rus avatar raxandeax avatar biogin avatar achechnev-ostvald avatar andreikozak avatar barometrr avatar

Watchers

Bantis Petru 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.