Skip to content

Constant: Untraceable, stable, digital cash

Notifications You must be signed in to change notification settings

0xakk0r0kamui/constant-chain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Constant chain

Constant is digital money you can actually use.

A new type of crypto curency

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

Environment for dev

  • Go 1.10 or newer.
  • Mac, Linux, Window OS

Installation

Linux/BSD/MacOSX/POSIX/Window - Build from Source
  • Install Go according to the installation instructions here: http://golang.org/doc/install
  • Ensure Go was installed properly and is a supported version: $ go version $ go env GOROOT GOPATH
  • Clone Project to GOPATH NOTE: The GOROOT and GOPATH above must not be the same path. It is recommended that GOPATH is set to a directory in your home directory such as ~/goprojects to avoid write permission issues. It is also recommended to add $GOPATH/bin to your PATH at this point.
  • Install go lib with go get -v
  • Run go build -o constant in project dir or run sh build.sh to copy into go bin dir

Run node

  • Pre-install like "Prerequisites"
  • Get node up with go build $ ./constant --enablewallet --wallet "wallet" --walletpassphrase "12345678" --testnet --norpcauth
  • Get node up with sh build.sh $ constant --enablewallet --wallet "wallet" --walletpassphrase "12345678" --testnet --norpcauth

Run with docker-compose

  • To start dev container $ docker-compose -p constantdev -f dev-env/docker-compose.yaml up -d
  • To stop dev container $ docker-compose -f dev-env/docker-compose.yaml down
  • To start developing $ docker exec -it constant-prototype-dev sh $ glide install $ go build $ ./constant
  • To start other nodes (these nodes will start will config file in dev-env/nodes-data/node-<NODE_NUMBER>) $ docker run -i -t --net constantdev_constant-net --mount type=bind,src=$PWD/constant,dst=/constant --mount type=bind,src=$PWD/dev-env/nodes-data/node<REPLACE THIS WILL NODE_NUMBER>,dst=/nodedata --expose 9333 alpine:3.7 /constant --configfile /nodedata/config.conf

Config values

How to use config

  • Refer to config.go or sample-config.conf in source code to get full explanation
  • Run node with config param in long or short format to change features of running node

Other Utilities

About

Constant: Untraceable, stable, digital cash

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages