HC daemon
Switch branches/tags
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
addrmgr Update addrmanager_test.go Oct 26, 2018
blockchain Modify difficulty_test.go Nov 19, 2018
chaincfg Update secp256k1_test.go Nov 2, 2018
cmd Update README.md Sep 1, 2018
connmgr modify hcd developers to hc developers Jul 24, 2018
crypto HC modification Aug 22, 2018
database fix test error Oct 12, 2018
docs Delete contributions.md Sep 20, 2018
hcec HC modification Aug 22, 2018
hcjson change order of hcjson test Dec 13, 2018
hcutil Update wif_test.go Nov 15, 2018
limits modify hcd developers to hc developers Jul 24, 2018
mempool Modify test case Nov 14, 2018
mining modify hcutil path Jul 28, 2018
peer update peer test Nov 21, 2018
release Modify decred to HC. Jul 30, 2018
rpctest add testJoinBlocks desc Nov 22, 2018
sampleconfig support sendmanyv2 Aug 23, 2018
txscript update txscript Dec 13, 2018
wire fixed wire test failed Sep 17, 2018
.dockerignore Hc daemon Jul 19, 2018
.gitignore remove merkleblock Aug 5, 2018
Dockerfile Update Dockerfile Sep 12, 2018
Dockerfile.alpine docker Sep 11, 2018
Gopkg.lock commit gopkg.* file Aug 23, 2018
Gopkg.toml commit gopkg.* file Aug 23, 2018
LICENSE update version to v2.0.0 Jul 20, 2018
README.md Update README.md Sep 12, 2018
blocklogger.go modify hcutil path Jul 28, 2018
blockmanager.go HC modification Aug 22, 2018
config.go support sendmanyv2 Aug 23, 2018
cpuminer.go modify hcutil path Jul 28, 2018
doc.go modify doc readme Jul 31, 2018
hcd.go fix memory profile Aug 24, 2018
ipc.go HC modification Aug 22, 2018
log.go HC modification Aug 22, 2018
mining.go support sendmanyv2 Aug 23, 2018
mining_test.go update mining for test Oct 22, 2018
miningerror.go modify hcd developers to hc developers Jul 24, 2018
params.go modify hcd developers to hc developers Jul 24, 2018
rpcserver.go HC modification Aug 22, 2018
rpcserver_test.go Hc daemon Jul 19, 2018
rpcserverhelp.go fixed rpcserverhelp test failed Sep 14, 2018
rpcserverhelp_test.go modify hcd developers to hc developers Jul 24, 2018
rpcwebsocket.go HC modification Aug 22, 2018
run_tests.sh Modify decred to HC. Jul 30, 2018
server.go HC modification Aug 22, 2018
service_windows.go HC modification Aug 22, 2018
signal.go HC modification Aug 22, 2018
signalsigterm.go Hc daemon Jul 19, 2018
upnp.go Hc daemon Jul 19, 2018
version.go increase appPatch Aug 2, 2018

README.md

hcd

ISC License

What is HyperCash(HC)?

hcd is a Hc full node implementation written in Go (golang).

This acts as a chain daemon for the Hc cryptocurrency. hcd maintains the entire past transactional ledger of Hc and allows relaying of quantum resistant transactions to other Hc nodes across the world.

Note: To send or receive funds and join Proof-of-Stake mining, you will also need hcwallet.

HC is forked from Decred and btcd which are full node implementations written in Go. Both projects are ongoing and under active development. Since hcd is synced and will merge with upstream commits from hcd and btcd, it will get the benefit of both hcd and btcd's ongoing upgrades to staking, voting, peer and connection handling, database optimization and other blockchain related technology improvements. Advances made by hcd can also be pulled back upstream to hcd and btcd including quantum resistant signature schemes and more.

Development Process

The master branch is regularly built and tested, but is not guaranteed to be completely stable. Tags are created regularly to indicate new official, stable release versions of hcd.

Requirements

Go 1.7 or newer.

Getting Started

  • hcd (and utilities) will now be installed in either $GOROOT/bin or $GOPATH/bin depending on your configuration. If you did not already add the bin directory to your system path during Go installation, we recommend you do so now.

Installing

Build from Source

  • Dep

    Dep is used to manage project dependencies and provide reproducible builds. To install:

    go get -u github.com/golang/dep/cmd/dep

Unfortunately, the use of dep prevents a handy tool such as go get from automatically downloading, building, and installing the source in a single command. Instead, the latest project and dependency sources must be first obtained manually with git and dep, and then go is used to build and install the project.

Getting the source:

For a first time installation, the project and dependency sources can be obtained manually with git and dep (create directories as needed):

git clone https://github.com/HcashOrg/hcd $GOPATH/src/github.com/HcashOrg/hcd
cd $GOPATH/src/github.com/HcashOrg/hcd
dep ensure
go install . ./cmd/...

To update an existing source tree, pull the latest changes and install the matching dependencies:

cd $GOPATH/src/github.com/HcashOrg/hcd
git pull
dep ensure -update
go install . ./cmd/...

Running

Make sure you are working the correct GOPATH and run the following in your terminal:

hcd -u YOURUNIQUERPCUSERNAME -P YOURUNIQUERPCPASSWORD --testnet

To use your node for mining add the miningaddr flag when running hcd:

hcd -u YOURUNIQUERPCUSERNAME -P YOURUNIQUERPCPASSWORD --testnet --miningaddr=YOURTESTNETADDRESS

To generate a testnet mining address you must install hcwallet

To begin CPU mining after hcd is already running you can run the following in your terminal:

hcctl -u YOURUNIQUEUSERNAME -P YOURUNIQUEPASSWORD --testnet setgenerate true

Docker

Running hcd

You can run a HC node from inside a docker container. To build the image yourself, use the following command:

docker build -t hcashorg/hcd .

Or you can create an alpine based image (requires Docker 17.05 or higher):

docker build -t hcashorg/hcd:alpine -f Dockerfile.alpine .

You can then run the image using:

docker run hcashorg/hcd

REINSTALL

Linux

$ rm -rf $HOME/.hcd
$ rm -rf $HOME/.hcwallet
$ cd $HOME/go/src/github.com/HcashOrg/hcd
$ git pull
$ go install $(glide nv)

Mac/OSX

$ rm -rf $HOME/Library/Application\ Support/Hcwallet
$ rm -rf $HOME/Library/Application\ Support/Hcd
$ cd $HOME/go/src/github.com/HcashOrg/hcd
$ git pull
$ go install $(glide nv)

Issue Tracker

The integrated github issue tracker is used for this project.

Documentation

The documentation is a work-in-progress. It is located in the docs folder.

License

hcd is licensed under the copyfree ISC License.