noah-go-node

module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2019 License: MIT

README

last commit license version Go version

NOAH-blockchain go-node

dev-branch

The branch contains the most current version

beta-branch

The branch contains a version for beta-testing

master-branch

Public release

Sub-modules

Remote cluster using terraform and ansible
Amino
IAVL+ Tree

Install and build node

###Quick Start

1. Download Noah

Clone source code to your machine

mkdir -p $GOPATH/src/github.com/noah-blockchain or $HOME/noah
cd $GOPATH/src/github.com/noah-blockchain
git clone https://github.com/noah-blockchain/noah-go-node.git
cd noah-go-node
2. Install Node Modules
make create_vendor
3. Compile
make build

After this command compiled node will be in folder build and node configuration will be in folder $HOME/noah.

4. Configure Node Settings
  1. Open folder $HOME/noah/config and find file config.toml
  2. Set up db for node. For using goleveldb setup parameter db_backend="goleveldb"
  3. Set up node mode (validator or not validator). For setup node mode we using env variable VALIDATOR_MODE=(true or false). But if the env VALIDATOR_MODE not exist we using parameter from config.toml named validator_mode='(true or false)'. Default value validator_mode='false'.
  4. Setup private node key for generation Node ID. By default, node will be generate node key automatically, but if you have setup your own node key you can put them in env NODE_KEY.
5. Run node

For running node use command ./build/noah node.

noah version
noah node 

We recommend using our node docker.

6. Use GUI

Open http://localhost:3000/ in local browser to see node’s GUI. P.S. Available only in not validator mode.

Directories

Path Synopsis
cmd
core
dao
types
Package common contains various helper functions.
Package common contains various helper functions.
bn256
Package bn256 implements a particular bilinear group at the 128-bit security level.
Package bn256 implements a particular bilinear group at the 128-bit security level.
bn256/cloudflare
Package bn256 implements a particular bilinear group at the 128-bit security level.
Package bn256 implements a particular bilinear group at the 128-bit security level.
bn256/google
Package bn256 implements a particular bilinear group.
Package bn256 implements a particular bilinear group.
secp256k1
Package secp256k1 wraps the bitcoin secp256k1 C library.
Package secp256k1 wraps the bitcoin secp256k1 C library.
sha3
Package sha3 implements the SHA-3 fixed-output-length hash functions and the SHAKE variable-output-length hash functions defined by FIPS-202.
Package sha3 implements the SHA-3 fixed-output-length hash functions and the SHAKE variable-output-length hash functions defined by FIPS-202.
Package hexutil implements hex encoding with NOAHx prefix.
Package hexutil implements hex encoding with NOAHx prefix.
Package math provides integer math utilities.
Package math provides integer math utilities.
Package rlp implements the RLP serialization format.
Package rlp implements the RLP serialization format.
rpc
lib
HTTP RPC server supporting calls via uri params, jsonrpc, and jsonrpc over websockets Client Requests Suppose we want to expose the rpc function `HelloWorld(name string, num int)`.
HTTP RPC server supporting calls via uri params, jsonrpc, and jsonrpc over websockets Client Requests Suppose we want to expose the rpc function `HelloWorld(name string, num int)`.
lib/server
Commons for HTTP handling
Commons for HTTP handling

Jump to

Keyboard shortcuts

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