Skip to content

Commit

Permalink
Update documents (#2701)
Browse files Browse the repository at this point in the history
* Update mainnet version (#2618)

* update mainnet version

* update height

* Bump browserslist from 4.16.3 to 4.16.6 in /docs (#2622)

Bumps [browserslist](https://github.com/browserslist/browserslist) from 4.16.3 to 4.16.6.
- [Release notes](https://github.com/browserslist/browserslist/releases)
- [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md)
- [Commits](browserslist/browserslist@4.16.3...4.16.6)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump dns-packet from 1.3.1 to 1.3.4 in /docs (#2624)

Bumps [dns-packet](https://github.com/mafintosh/dns-packet) from 1.3.1 to 1.3.4.
- [Release notes](https://github.com/mafintosh/dns-packet/releases)
- [Changelog](https://github.com/mafintosh/dns-packet/blob/master/CHANGELOG.md)
- [Commits](mafintosh/dns-packet@v1.3.1...v1.3.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Yelong Zhang <yelong@bianjie.ai>

* Bump ws from 6.2.1 to 6.2.2 in /docs (#2627)

Bumps [ws](https://github.com/websockets/ws) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/commits)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Yelong Zhang <yelong@bianjie.ai>

* Create codeql-analysis.yml

* Delete dependabot.yml

* Bump postcss from 7.0.35 to 7.0.36 in /docs (#2630)

Bumps [postcss](https://github.com/postcss/postcss) from 7.0.35 to 7.0.36.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](postcss/postcss@7.0.35...7.0.36)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Implement farm module (#2623)

* add query params api

* Revert "Update mainnet version (#2618)"

This reverts commit 7cf7584.

* revert

* upgrade irismod version

* fix some bugs

* revert

* refund shoule be in endblocker not begin blocker

* revert version

* revert version

* upgrade irismod version

* update irismod version

* fix compling

* upgrade irismod

* upgrade irismod

* merge from master

* upgrade irismod

* add farm api and swagger doc

Co-authored-by: chengwenxi <vincent.ch.cn@gmail.com>

* Update irismod version (#2635)

* add query params api

* Revert "Update mainnet version (#2618)"

This reverts commit 7cf7584.

* merge from master

* update farm version

* revert code

* revert docs

* revert docs

* update irismod version

* update irismod version

* add farm proto docs

Co-authored-by: chengwenxi <vincent.ch.cn@gmail.com>

* Bump prismjs from 1.23.0 to 1.24.0 in /docs (#2633)

Bumps [prismjs](https://github.com/PrismJS/prism) from 1.23.0 to 1.24.0.
- [Release notes](https://github.com/PrismJS/prism/releases)
- [Changelog](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md)
- [Commits](PrismJS/prism@v1.23.0...v1.24.0)

---
updated-dependencies:
- dependency-name: prismjs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: vincent <vincent.ch.cn@gmail.com>

* Bump color-string from 1.5.4 to 1.5.5 in /docs (#2632)

Bumps [color-string](https://github.com/Qix-/color-string) from 1.5.4 to 1.5.5.
- [Release notes](https://github.com/Qix-/color-string/releases)
- [Changelog](https://github.com/Qix-/color-string/blob/master/CHANGELOG.md)
- [Commits](Qix-/color-string@1.5.4...1.5.5)

---
updated-dependencies:
- dependency-name: color-string
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: vincent <vincent.ch.cn@gmail.com>

* update the irismod version of irishub (#2636)

Co-authored-by: vincent <vincent.ch.cn@gmail.com>

* update the irismod version of irishub (#2637)

* fix the staking.md (#2640)

* fix the staking.md

* transaction

* Version bumps, non-breaking (#2645)

* Fix zh/features/governance.md (#2647)

* fix governance

* fix governance

* Update BuildAndPublish.yml

* Fix nft metadata link (#2643)

* fix NFT.md

* fix ch

Co-authored-by: vincent <vincent.ch.cn@gmail.com>
Co-authored-by: Yelong Zhang <yelong@bianjie.ai>

* Upgrade coinswap (#2648)

* upgrade coinswap

* init farm moudle params

* apply comment from github

* Fix zh/features/governance.md (#2651)

* Bump url-parse from 1.5.1 to 1.5.3 in /docs (#2650)

Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.1 to 1.5.3.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](unshiftio/url-parse@1.5.1...1.5.3)

---
updated-dependencies:
- dependency-name: url-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: vincent <vincent.ch.cn@gmail.com>

* Bump path-parse from 1.0.6 to 1.0.7 in /docs (#2649)

Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: vincent <vincent.ch.cn@gmail.com>

* update coin denom (#2652)

* update irismod version (#2653)

* fix command typo (#2654)

* fix cosmos-sdk v0.42.9 upgrade (#2655)

* Update irismod version (#2657)

* update irismod version

* update irismod version

* update irismod version and proto docs (#2658)

* Fix testnet (#2656)

* fix testnet

* fix testnet detail

Co-authored-by: vincent <vincent.ch.cn@gmail.com>

* update swagger doc (#2659)

* fix-large-unit-conversion-bug (#2660)

* update irismod dependecy (#2661)

* Fix nft-transfer bug (#2662)

* fix nft-transfer bug

* solve the problem of if nesting and err

Co-authored-by: vincent <vincent.ch.cn@gmail.com>

* Update farm params (#2663)

* update irismod version

* update farm params

* update irismod version

* update irismod version

* Add farm pagination (#2665)

* update irismod version

* add pagination flags

* Add farm module command docs (#2667)

* add command docs

* apply comments from github

Co-authored-by: vincent <vincent.ch.cn@gmail.com>

* bump up cosmos-sdk to v0.44.0 (#2668)

* update app

* update simapp

* fix

* fix

* update ConfigureBech32Prefix

* update irismod version

* fix

* fix

* fix

* fix

* add tibc module

* fix NewAccountKeeper

* fix

* bformat

* fix

* bump tibc version

* Fix cli and tibc (#2674)

* fix rootcmd and update app

* fix nft transfer

* reset PersistentPostRun

* revert converter

* upgrade tibc-go version

Co-authored-by: Dreamer <745124335@qq.com>

* fix irishub load tibcnftTransfer bug (#2675)

* fix upgrade (#2678)

* bump cosmos-sdk version to v0.44.1 (#2677)

Co-authored-by: Yelong Zhang <yelong@bianjie.ai>

* fix app (#2676)

* fix app

* fix

Co-authored-by: Yelong Zhang <yelong@bianjie.ai>

* upgrade tibc-go (#2679)

* Fix upgrade failed (#2681)

* add RunMigrations

* update RunMigrations

* fix upgrade failed

* fix docs link error (#2682)

* Update irismod version (#2683)

* fix docs link error

* update irismod version

* Bump axios from 0.21.1 to 0.21.2 in /docs (#2672)

Bumps [axios](https://github.com/axios/axios) from 0.21.1 to 0.21.2.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/master/CHANGELOG.md)
- [Commits](axios/axios@v0.21.1...v0.21.2)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Yelong Zhang <yelong@bianjie.ai>

* Bump prismjs from 1.24.0 to 1.25.0 in /docs (#2670)

Bumps [prismjs](https://github.com/PrismJS/prism) from 1.24.0 to 1.25.0.
- [Release notes](https://github.com/PrismJS/prism/releases)
- [Changelog](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md)
- [Commits](PrismJS/prism@v1.24.0...v1.25.0)

---
updated-dependencies:
- dependency-name: prismjs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Yelong Zhang <yelong@bianjie.ai>

* update github action files: update 'runs-on' option from 'ubuntu-16.04' to 'ubuntu-18.04'. (#2684)

* Update default chain name (#2685)

* fix docs link error

* update defalt chain name

* Replace tendermint to support sm2 (#2686)

* fix docs link error

* replace tendermint

* replace tendermint

* Update irismod require (#2687)

* update irismod require

* update tibc-go require

* Bump dep versions (#2688)

* bump irismod version to v1.5.0-alpha

* bump tibc version to v0.2.0-alpha

* Add default light client when upgrading (#2691)

* the light client is initialized by default When upgrading (#2689)

* fix docs link error

* replace tendermint

* replace tendermint

* init clients when upgrade

* register relayers

* fix test error

* Add eth client (#2690)

* fix docs link error

* replace tendermint

* replace tendermint

* init clients when upgrade

* register relayers

* fix test error

* add eth light client

* Cannot create connection after ibc module upgrade (#2692)

* fix docs link error

* fix ibc upgrade error

* Add change log (#2693)

* fix docs link error

* add change log

* add nft change log

* add api breaking changes

* bump golang version

* Update nft user documentation (#2666)

* update user documentation

* update user documentation

* format && update filed

Co-authored-by: Yelong Zhang <yelong@bianjie.ai>

* Add files for initializing the client and relayer (#2695)

* Add files for initializing the client and relayer

* fix: register data

Co-authored-by: sheldon <997166273@qq.com>

* upgrade tibc-go version (#2696)

Co-authored-by: sheldon <997166273@qq.com>

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update CHANGELOG.md

* bump up cosmos-sdk version to 0.44.3 (#2697)

* bump cosmos-sdk to v0.44.3

* bump cosmos-sdk to v0.44.3

* bump cosmos-sdk to v0.44.3

* Update general-concepts.md (#2698)

* add State Sync docs (#2700)

Co-authored-by: Yelong Zhang <yelong@bianjie.ai>

Co-authored-by: vincent <vincent.ch.cn@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Zhiqiang Zhang <745124335@qq.com>
Co-authored-by: mindcarver <32150062+mindcarver@users.noreply.github.com>
Co-authored-by: gnehcein <65959195+gnehcein@users.noreply.github.com>
Co-authored-by: Jacob Gadikian <jacobgadikian@gmail.com>
Co-authored-by: Jinbiao Zhang <zhangjinbiao9693@gmail.com>
Co-authored-by: CoreyCheung <47237370+CoreyCheung@users.noreply.github.com>
Co-authored-by: Segue <huoda.china@gmail.com>
Co-authored-by: Pancongwen <peter.pancongwen@gmail.com>
Co-authored-by: jcbert <55687901+yjcbert@users.noreply.github.com>
Co-authored-by: zhangxing <nicholouszhang@163.com>
Co-authored-by: aofengli <aifengloveme@163.com>
Co-authored-by: sheldon <997166273@qq.com>
Co-authored-by: XB <xubo@bianjie.ai>
Co-authored-by: Zhiwei(Jeffrey) Hu <huzhiwei@outlook.com>
  • Loading branch information
17 people authored Dec 6, 2021
1 parent 0f9b92e commit e59f748
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/get-started/mainnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ Next, your node will process all chain upgrades. Between each upgrade, you must
You may see some connection errors, it does not matter, the P2P network is trying to find available connections

Try to add some of the [Community Peers](https://github.com/irisnet/mainnet/blob/master/config/community-peers.md) to `persistent_peers` in the config.toml

If you want to quickly start the node and join IRIS Hub without historical data, you can consider using the [state_sync](./state-sync.md) function.
:::

## Upgrade to Validator Node
Expand Down
40 changes: 40 additions & 0 deletions docs/get-started/state-sync.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
order: 7
---

# State Sync

If you want to quickly start the node and join IRIS Hub without historical data, you can consider using the `state_sync` feature. **Note that the data directory must be empty when starting the node.**

## Procedure

1. Initialize the mainnet node by referring to [Join The Mainnet](./mainnet.md).
2. Check the block height of the current snapshot, and select the latest height.

```bash
curl http://34.82.96.8:26658/
```

3. Modify the `config.toml`.

```toml
[statesync]
enable = true # whether enable stat_sync; set true
rpc_servers = "34.82.96.8:26657,34.77.68.145:26657" # RPC server address which the node connects to
trust_height = # Set to the block height of the latest snapshot
trust_hash = "" #Set to the hash corresponding to the latest snapshot block height (trust height), which can be checked via https://irishub.iobscan.io/#/block/<trust_height>.
trust_period = "168h0m0s"
discovery_time = "15s"
temp_dir = ""
```

4. Start the node.

```bash
iris start
```

## Others

1. If any problem occurs during chain starting, you can execute `iris unsafe-reset-all` to reset the node and repeat the steps above.
2. If you can't find solutions to the current issue, please contact us via [IRISnet Discord channel](https://discord.com/invite/bmhu9F9xbX) for help.
2 changes: 2 additions & 0 deletions docs/zh/get-started/mainnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ iris start
您可能会看到一些连接错误,这没关系,P2P网络正在尝试查找可用的连接

可以添加几个[社区公开节点](https://github.com/irisnet/mainnet/blob/master/config/community-peers.md)`config.toml`中的`persistent_peers`

如果您在不需要历史数据的情况下要快速启动节点并加入 IRIS Hub,可以考虑使用 [state_sync](./state-sync.md) 功能快速启动节点。
:::

## 升级为验证人节点
Expand Down
40 changes: 40 additions & 0 deletions docs/zh/get-started/state-sync.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
order: 7
---

# State Sync
## 背景

如果您在不需要历史数据的情况下要快速启动节点并加入 IRIS Hub,可以考虑使用 `state_sync` 功能快速启动节点。需要注意的是在启动节点的时候要保证节点 data 目录是空的。

## 步骤

1. 参考 [加入主网](./mainnet.md) 进行主网节点初始化
2. 查看现存快照的块高,并选取最新块高

```bash
curl http://34.82.96.8:26658/
```

3. 修改配置文件 `config.toml`

```toml
[statesync]
enable = true #是否开启 stat_sync,设置为 true
rpc_servers = "34.82.96.8:26657,34.77.68.145:26657" #链接的 rpc server 地址
trust_height = # 设置为最新快照的块高
trust_hash = "" #设置为最新快照块高对应的 hash,可通过浏览器 https://irishub.iobscan.io/#/block/<trust_height> 进行查看
trust_period = "168h0m0s"
discovery_time = "15s"
temp_dir = ""
```

4. 启动节点

```bash
iris start
```

## 其他
1. 如果在启动链的过程中有问题可以执行 `iris unsafe-reset-all` 重置节点,然后重复以上步骤。
2. 如果出现不能解决的问题,请通过 [Discord](https://discord.com/invite/bmhu9F9xbX) 来联系 IRISnet,我们将帮助您解决遇到的问题。

0 comments on commit e59f748

Please sign in to comment.