#### Get the source code
``` bash
-$ git clone https://github.com/Bytom/bytom $GOPATH/src/github.com/bytom
+$ git clone https://github.com/Bytom/bytom.git $GOPATH/src/github.com/bytom
```
#### Build
```bash
$ cd ./cmd/bytomd
-$ ./bytomd init --chain_id testnet
+$ ./bytomd init --chain_id mainnet
```
-There are two options for the flag `--chain_id`:
+There are three options for the flag `--chain_id`:
-- `testnet`: connect to the testnet.
-- `mainnet`: standalone mode.
+- `mainnet`: connect to the mainnet.
+- `testnet`: connect to the testnet wisdom.
+- `solonet`: standalone mode.
-After that, you'll see `.bytomd` generated in current directory, then launch the node.
+After that, you'll see `config.toml` generated, then launch the node.
### launch
```
--auth.disable Disable rpc access authenticate
+ --chain_id string Select network type
+ -h, --help help for node
--mining Enable mining
--p2p.dial_timeout int Set dial timeout (default 3)
--p2p.handshake_timeout int Set handshake timeout (default 30)
--p2p.laddr string Node listen address.
--p2p.max_num_peers int Set max num peers (default 50)
- --p2p.pex Enable Peer-Exchange
+ --p2p.pex Enable Peer-Exchange (default true)
--p2p.seeds string Comma delimited host:port seed nodes
--p2p.skip_upnp Skip UPNP configuration
--prof_laddr string Use http to profile bytomd programs
+ --vault_mode Run in the offline enviroment
--wallet.disable Disable wallet
+ --wallet.rescan Rescan wallet
--web.closed Lanch web browser or not
```
"id": "0CIT3OI100A04",
"key_index": 1,
"quorum": 1,
- "tags": null,
"xpubs": [
"d91df216da6c5641ef454c8da1e56362f86ed80d8b8fc26ab77746e1b92d6d3aa8023fe300e4c74036460d01349e4eb25cb3d7379bad855879017bc1c76165bb"
]
"id": "0CIT6J0QG0A06",
"key_index": 1,
"quorum": 2,
- "tags": null,
"xpubs": [
"cb6057b683c5a341ea29e02ec5bb1e53691eb3b14c285138175d42b07d0551798977fc50203bde1dc2827a07f6f26237fa8ec3c6a2ef272ed80f9211f9c6ac64",
"d91df216da6c5641ef454c8da1e56362f86ed80d8b8fc26ab77746e1b92d6d3aa8023fe300e4c74036460d01349e4eb25cb3d7379bad855879017bc1c76165bb"
"root_xpub": "d91df216da6c5641ef454c8da1e56362f86ed80d8b8fc26ab77746e1b92d6d3aa8023fe300e4c74036460d01349e4eb25cb3d7379bad855879017bc1c76165bb"
}
],
- "quorum": 1,
- "tags": {}
+ "quorum": 1
}
```
"root_xpub": "d91df216da6c5641ef454c8da1e56362f86ed80d8b8fc26ab77746e1b92d6d3aa8023fe300e4c74036460d01349e4eb25cb3d7379bad855879017bc1c76165bb"
}
],
- "quorum": 1,
- "tags": {}
+ "quorum": 1
}
```
$ docker build -t bytom .
```
+For the usage please refer to [here](https://github.com/Bytom/bytom/wiki/Running-in-Docker).
+
## Contributing
Thank you for considering helping out with the source code! Any contributions are highly appreciated, and we are grateful for even the smallest of fixes!