Thor is VeChain's new generation blockchain project. It's the official implementation written in golang.
Thor requires Go 1.10+ and C compiler to build. To install Go, follow this link.
In addition, dep is required to manage dependencies.
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
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.
Connect to VeChain's testnet:
bin/thor -network test
To find out usages of all command line options:
bin/thor -h
--network valuethe network to join (test)--data-dir valuedirectory for block-chain databases--beneficiary valueaddress for block rewards--api-addr valueAPI service listening address (default: "localhost:8669")--api-cors valuecomma separated list of domains from which to accept cross origin requests to API--verbosity valuelog verbosity (0-9) (default: 3)--max-peers valuemaximum number of P2P network peers (P2P network disabled if set to 0) (default: 25)--p2p-port valueP2P network listening port (default: 11235)--nat valueport mapping mechanism (any|none|upnp|pmp|extip:) (default: "none")--help, -hshow help--version, -vprint the version
Once thor started, online OpenAPI doc can be accessed in your browser. e.g. http://localhost:8669/ by default.
VeChainThor is licensed under the GNU Lesser General Public License v3.0, also included in LICENSE file in repository.