Skip to content

Commit

Permalink
Update migrate docs (#2569)
Browse files Browse the repository at this point in the history
* update migrate docs

* add chinese docs

* apply comment from github

* apply comment from github

* apply comment from github

* apply comment from github

* apply comment from github

Co-authored-by: vincent <[email protected]>
  • Loading branch information
Zhiqiang Zhang and chengwenxi authored Feb 18, 2021
1 parent 3899e1c commit 6c4a335
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 8 deletions.
22 changes: 18 additions & 4 deletions docs/migration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,25 @@ iris init [moniker] --home [v1.0.1_node_home]

## 4. Migrate privkey file

Migrate privkey file with irishub v1.0.1
Migrate privkey file with irishub v1.0.1.

```bash
go run migrate/scripts/privValUpgrade.go [v0.16_node_home]/config/priv_validator.json [v1.0.1_node_home]/config/priv_validator_key.json [v1.0.1_node_home]/data/priv_validator_state.json
```
- KMS user
If you are using KMS to deploy node, please upgrade `tmkms` first, and then modify the relevant configuration. Please refer to the [kms](../tools/kms.md) for details

- Not KMS user
If you are not using KMS to deploy node, and the node configuration file exists, you can use either one of the following two ways:

- Rename file

```bash
cp [v0.16_node_home]/config/priv_validator.json [v1.0.1_node_home]/config/priv_validator_key.json
```

- Use script

```bash
go run migrate/scripts/privValUpgrade.go [v0.16_node_home]/config/priv_validator.json [v1.0.1_node_home]/config/priv_validator_key.json [v1.0.1_node_home]/data/priv_validator_state.json
```

## 5. Migrate node key file

Expand Down
22 changes: 18 additions & 4 deletions docs/zh/migration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,25 @@ iris init [moniker] --home [v1.0.1_node_home]

## 4. 迁移私钥文件

使用 `irishub v1.0.1` 迁移私钥文件
使用 `irishub v1.0.1` 迁移私钥文件

```bash
go run migrate/scripts/privValUpgrade.go [v0.16_node_home]/config/priv_validator.json [v1.0.1_node_home]/config/priv_validator_key.json [v1.0.1_node_home]/data/priv_validator_state.json
```
- `KMS`用户
如果你使用的是KMS部署节点,请先升级`tmkms`,然后修改相关配置,详细内容请参考[kms](../tools/kms.md)

-`KMS`用户
如果你没有使用的是KMS部署节点,节点配置文件存在的情况下,可以使用以下两种方式中的一种迁移配置文件:

- 修改文件名称

```bash
cp [v0.16_node_home]/config/priv_validator.json [v1.0.1_node_home]/config/priv_validator_key.json
```

- 使用脚本

```bash
go run migrate/scripts/privValUpgrade.go [v0.16_node_home]/config/priv_validator.json [v1.0.1_node_home]/config/priv_validator_key.json [v1.0.1_node_home]/data/priv_validator_state.json
```

## 5. 迁移节点密钥文件

Expand Down

0 comments on commit 6c4a335

Please sign in to comment.