19
19
20
20
Here are the software versions we use:
21
21
22
- - MainNet: v1.5 .0
23
- - TestNet: v1.5 .0
22
+ - MainNet: v1.6 .0
23
+ - TestNet: v1.6 .0
24
24
25
25
## <a name =" mainnet " />Join MainNet
26
26
This is the recommended way to start an IoTeX node
27
27
28
28
1 . Pull the docker image:
29
29
30
30
```
31
- docker pull iotex/iotex-core:v1.5 .0
31
+ docker pull iotex/iotex-core:v1.6 .0
32
32
```
33
33
34
34
2 . Set the environment with the following commands:
@@ -43,8 +43,9 @@ mkdir -p $IOTEX_HOME/data
43
43
mkdir -p $IOTEX_HOME/log
44
44
mkdir -p $IOTEX_HOME/etc
45
45
46
- curl https://raw.githubusercontent.com/iotexproject/iotex-bootstrap/v1.5.0/config_mainnet.yaml > $IOTEX_HOME/etc/config.yaml
47
- curl https://raw.githubusercontent.com/iotexproject/iotex-bootstrap/v1.5.0/genesis_mainnet.yaml > $IOTEX_HOME/etc/genesis.yaml
46
+ curl https://raw.githubusercontent.com/iotexproject/iotex-bootstrap/v1.6.0/config_mainnet.yaml > $IOTEX_HOME/etc/config.yaml
47
+ curl https://raw.githubusercontent.com/iotexproject/iotex-bootstrap/v1.6.0/genesis_mainnet.yaml > $IOTEX_HOME/etc/genesis.yaml
48
+ curl https://raw.githubusercontent.com/iotexproject/iotex-bootstrap/v1.6.0/trie.db.patch > $IOTEX_HOME/data/trie.db.patch
48
49
```
49
50
50
51
3 . Edit ` $IOTEX_HOME/etc/config.yaml ` , look for ` externalHost ` and ` producerPrivKey ` , uncomment the lines and fill in your external IP and private key. If you leave ` producerPrivKey ` empty, your node will be assgined with a random key.
@@ -84,7 +85,7 @@ docker run -d --restart on-failure --name iotex \
84
85
-v=$IOTEX_HOME/log:/var/log:rw \
85
86
-v=$IOTEX_HOME/etc/config.yaml:/etc/iotex/config_override.yaml:ro \
86
87
-v=$IOTEX_HOME/etc/genesis.yaml:/etc/iotex/genesis.yaml:ro \
87
- iotex/iotex-core:v1.5 .0 \
88
+ iotex/iotex-core:v1.6 .0 \
88
89
iotex-server \
89
90
-config-path=/etc/iotex/config_override.yaml \
90
91
-genesis-path=/etc/iotex/genesis.yaml
@@ -103,7 +104,7 @@ docker run -d --restart on-failure --name iotex \
103
104
-v=$IOTEX_HOME/log:/var/log:rw \
104
105
-v=$IOTEX_HOME/etc/config.yaml:/etc/iotex/config_override.yaml:ro \
105
106
-v=$IOTEX_HOME/etc/genesis.yaml:/etc/iotex/genesis.yaml:ro \
106
- iotex/iotex-core:v1.5 .0 \
107
+ iotex/iotex-core:v1.6 .0 \
107
108
iotex-server \
108
109
-config-path=/etc/iotex/config_override.yaml \
109
110
-genesis-path=/etc/iotex/genesis.yaml \
@@ -124,7 +125,7 @@ Same as [Join MainNet](#mainnet) step 2
124
125
```
125
126
git clone https://github.com/iotexproject/iotex-core.git
126
127
cd iotex-core
127
- git checkout checkout v1.5 .0
128
+ git checkout checkout v1.6 .0
128
129
129
130
// optional
130
131
export GOPROXY=https://goproxy.io
@@ -167,8 +168,8 @@ nohup $IOTEX_HOME/iotex-server \
167
168
There's almost no difference to join TestNet, but in step 2, you need to use the config and genesis files for TestNet:
168
169
169
170
```
170
- curl https://raw.githubusercontent.com/iotexproject/iotex-bootstrap/v1.5 .0/config_testnet.yaml > $IOTEX_HOME/etc/config.yaml
171
- curl https://raw.githubusercontent.com/iotexproject/iotex-bootstrap/v1.5 .0/genesis_testnet.yaml > $IOTEX_HOME/etc/genesis.yaml
171
+ curl https://raw.githubusercontent.com/iotexproject/iotex-bootstrap/v1.6 .0/config_testnet.yaml > $IOTEX_HOME/etc/config.yaml
172
+ curl https://raw.githubusercontent.com/iotexproject/iotex-bootstrap/v1.6 .0/genesis_testnet.yaml > $IOTEX_HOME/etc/genesis.yaml
172
173
```
173
174
174
175
In step 4, you need to use the snapshot for TestNet: https://t.iotex.me/testnet-data-latest and https://t.iotex.me/testnet-data-with-idx-latest . If you need legacy delegate election data(poll.db) for TestNet, you can download it here: https://storage.googleapis.com/blockchain-golden/poll.testnet.tar.gz
0 commit comments