Skip to content

renlr/thor

 
 

Repository files navigation

VeChainThor

Thor is VeChain's new generation blockchain project. It's the official implementation written in golang.

Installation

Requirements

Thor requires Go 1.10+ and C compiler to build. To install Go, follow this link.

In addition, dep is required to manage dependencies.

Getting the source

Clone the Thor repo:

git clone https://github.com/vechain/thor.git
cd thor

Install dependencies: (Note that to make dep work, you should put Thor's source code at proper position under your $GOPATH.)

dep ensure

Building

To build the main app thor, just run

make

or build the full suite:

make all

If no error reported, all built executable binaries will appear in folder bin.

Running Thor

Connect to VeChain's testnet:

bin/thor -network test

To find out usages of all command line options:

bin/thor -h
  • --network value the network to join (test)
  • --data-dir value directory for block-chain databases
  • --beneficiary value address for block rewards
  • --api-addr value API service listening address (default: "localhost:8669")
  • --api-cors value comma separated list of domains from which to accept cross origin requests to API
  • --verbosity value log verbosity (0-9) (default: 3)
  • --max-peers value maximum number of P2P network peers (P2P network disabled if set to 0) (default: 25)
  • --p2p-port value P2P network listening port (default: 11235)
  • --nat value port mapping mechanism (any|none|upnp|pmp|extip:) (default: "none")
  • --help, -h show help
  • --version, -v print the version

API

Once thor started, online OpenAPI doc can be accessed in your browser. e.g. http://localhost:8669/ by default.

FAQ

Acknowledgement

Community

Contributing

License

VeChainThor is licensed under the GNU Lesser General Public License v3.0, also included in LICENSE file in repository.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 99.5%
  • Other 0.5%