OSDN Git Service

optmise
[bytom/bytom.git] / README.md
index 4924777..9b0d9f1 100644 (file)
--- a/README.md
+++ b/README.md
@@ -63,7 +63,7 @@ $ go env GOROOT GOPATH
 #### 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
@@ -86,15 +86,16 @@ First of all, initialize the node:
 
 ```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
 
@@ -106,16 +107,20 @@ available flags for `bytomd node`:
 
 ```
       --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
 ```
 
@@ -162,7 +167,6 @@ $ ./bytomcli create-account alice d91df216da6c5641ef454c8da1e56362f86ed80d8b8fc2
   "id": "0CIT3OI100A04",
   "key_index": 1,
   "quorum": 1,
-  "tags": null,
   "xpubs": [
     "d91df216da6c5641ef454c8da1e56362f86ed80d8b8fc26ab77746e1b92d6d3aa8023fe300e4c74036460d01349e4eb25cb3d7379bad855879017bc1c76165bb"
   ]
@@ -203,7 +207,6 @@ $ ./bytomcli create-account multi_account d91df216da6c5641ef454c8da1e56362f86ed8
   "id": "0CIT6J0QG0A06",
   "key_index": 1,
   "quorum": 2,
-  "tags": null,
   "xpubs": [
     "cb6057b683c5a341ea29e02ec5bb1e53691eb3b14c285138175d42b07d0551798977fc50203bde1dc2827a07f6f26237fa8ec3c6a2ef272ed80f9211f9c6ac64",
     "d91df216da6c5641ef454c8da1e56362f86ed80d8b8fc26ab77746e1b92d6d3aa8023fe300e4c74036460d01349e4eb25cb3d7379bad855879017bc1c76165bb"
@@ -231,8 +234,7 @@ $ ./bytomcli create-asset GOLD d91df216da6c5641ef454c8da1e56362f86ed80d8b8fc26ab
       "root_xpub": "d91df216da6c5641ef454c8da1e56362f86ed80d8b8fc26ab77746e1b92d6d3aa8023fe300e4c74036460d01349e4eb25cb3d7379bad855879017bc1c76165bb"
     }
   ],
-  "quorum": 1,
-  "tags": {}
+  "quorum": 1
 }
 ```
 
@@ -267,8 +269,7 @@ $ ./bytomcli create-asset SILVER d91df216da6c5641ef454c8da1e56362f86ed80d8b8fc26
       "root_xpub": "d91df216da6c5641ef454c8da1e56362f86ed80d8b8fc26ab77746e1b92d6d3aa8023fe300e4c74036460d01349e4eb25cb3d7379bad855879017bc1c76165bb"
     }
   ],
-  "quorum": 1,
-  "tags": {}
+  "quorum": 1
 }
 ```