Skip to content
Permalink
Browse files

Merge branch 'master' of github.com:tomochain/docs

  • Loading branch information...
thanhson1085 committed Jul 12, 2019
2 parents a93ad7e + 165818c commit 95b4efde2fa6f4040e92d925d37510eb1bb35771
Binary file not shown.
@@ -111,8 +111,13 @@ The following will walk you step-by-step to setup a TomoChain private net with t
- Set blocktime (default 2 seconds)
- Set reward of each epoch
- Set addresses to be initial masternodes
- Set number of blocks of each epoch (default 900)
- Set gap (How many blocks before checkoint need prepare new masternodes set ?)
- Set number of blocks of each epoch (default 900). If you would like to customize epoch number, please update code here
`common/constants.go:14`
```
EpocBlockRandomize = 900
```

- Set gap (How many blocks before checkpoint need prepare new masternodes set ?)
`suggestedGap = 5`
- Enter foundation address which you hold private key

@@ -48,6 +48,7 @@ The Testnet network is meant to be a public demo of our products and a way for u
- Consensus: POSV
- Block finality: `>75%`
- Consensus nodes: up to 150 (masternodes)
- Smart contract creation fee: gas price 1000 Gwei, gas limit >= 1000000

### Usefull links

@@ -16,7 +16,7 @@ Furthermore, more highly innovative products and technologies will be intensivel
developed and researched to make TomoChain become an ideal platform for blockchain
games, open finance, and enterprise-oriented applications.

![overview](/assets/overview.png)
![overview](/assets/infographic.jpg)

* **TomoChain**: TomoChain is the backbone public blockchain of TomoChain's product map.

@@ -8,28 +8,35 @@ mainnet without the need of using Docker and `tmn`.

```bash
export GOROOT=$HOME/usr/local/go
export GOPATH=$HOME/go
```

## Prepare tomo client software
#### Build from source code
Create new directory for the project
```bash
cd $GOPATH/src/github.com/ethereum/go-ethereum
mkdir -p $GOPATH/src/github.com/ethereum/
cd $GOPATH/src/github.com/ethereum/
```
- Download source code and build

- Download source code and build
```bash
git init
git remote add git@github.com:tomochain/tomochain.git
git clone git@github.com:tomochain/tomochain.git go-ethereum
cd go-ethereum
```

git pull origin master
- Checkout the latest version (e.g v1.4.1)
```
git pull origin --tags
git checkout v1.4.1
```

- Build the project
```
make all
```
- Binary file should be generated in build folder `$GOPATH/src/github.com/ethereum/go-ethereum/build/bin`

- Binary file should be generated in build folder `$GOPATH/src/github.com/ethereum/go-ethereum/build/bin`
```bash
alias tomo=$GOPATH/src/github.com/ethereum/go-ethereum/build/bin/tomo
```

0 comments on commit 95b4efd

Please sign in to comment.
You can’t perform that action at this time.