go-node

module
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2021 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

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://testnet-gate.decimalchain.com/api/rpc/genesis/chain')"
decd init "$NODE_MONIKER" --network testnet --chain-id "$CHAIN_ID"

Download proper genesis.json from master node

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

Add proper persistent_peers to config.toml file

# Comma separated list of nodes to keep persistent connections to
persistent_peers = "bf7a6b366e3c451a3c12b3a6c01af7230fb92fc7@139.59.133.148:26656"

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