go-node

module
v1.2.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2022 License: MIT

README

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

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 from https://backup.decimalchain.com

curl -O https://backup.decimalchain.com/decimalchain-2021-11-16_09-43.tgz

Extract downloaded archive and move the contents of data directory from it to the ~/.decimal/daemon/data

tar -xvf decimalchain-2021-11-16_09-43.tgz
cp -rv ./zfspool/2021-11-16_09-43/daemon/data/ ~/.decimal/daemon/data/

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

Directories

Path Synopsis
cmd
math
Package math provides integer math utilities.
Package math provides integer math utilities.
x
gov
nolint DONTCOVER
nolint DONTCOVER
nolint
nft
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/cosmos/modules/incubator/nft/keeper ALIASGEN: github.com/cosmos/modules/incubator/nft/types
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/cosmos/modules/incubator/nft/keeper ALIASGEN: github.com/cosmos/modules/incubator/nft/types

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL