Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade blockheight #571

Merged
merged 4 commits into from
Jul 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions docs/full-node/run-a-full-terra-node/build-terra-core.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@ If you are syncing a node from genesis, you will need to use the appropriate cor
| :----------: | :----------: | :-----------------: | :----------: |
| `phoenix-1` | Mainnet | `genesis` - 890000 | v2.0.0 |
| | | 890000 - 2979805 | v2.1.1 |
| | | 2979805 - `4711800` | v2.2.0 |
| | | 4711800 - `present` | v2.3.1 |
| | | 2979805 - 4711800 | v2.2.0 |
| | | 4711800 - 5994365 | v2.3.1 |
| | | 5994365 - `present` | v2.4.0 |


| :----------: | :----------: | :-----------------: | :----------: |
| `pisco-1` | Testnet | `genesis` - 838500 | v2.0.0-rc.0 |
| | | 838500 - 2777777 | 2.1.0-beta.1 |
Expand Down
29 changes: 26 additions & 3 deletions docs/full-node/run-a-full-terra-node/sync.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ From here, you can [monitor the sync](#monitor-the-sync). Make sure to check on

### Phoenix mainnet

If you would like to sync your node using the Phoenix mainnet, you will need to use version `v2.0.0` of terrad up until the block height of 890,000. To sync your node from block 890,000 to block 2,979,805, you will need to use version `v2.1.1` of terrad. From block 2,979,805 onwards, use version `v2.2.0` of terrad until block 4,711,800, and then continue the sync using `v2.3.1`.
If you would like to sync your node using the Phoenix mainnet, you will need to use version `v2.0.0` of terrad up until the block height of 890,000. To sync your node from block 890,000 to block 2,979,805, you will need to use version `v2.1.1` of terrad. From block 2,979,805 until block 4,711,800, use version `v2.2.0` of terrad until block 4,711,800. From block 4,711,800 until block 5,994,365, use version `v2.3.0`. From block 5,994,365 onwards, use version `v2.4.0` to complete the sync.

1. To switch to version `v2.0.0` of terrad, [change into your `core` directory](./build-terra-core.mdx#get-the-terra-core-source-code) and execute the following commands in your terminal:

Expand Down Expand Up @@ -242,7 +242,7 @@ terrad start

Syncing will halt at block 4,711,800, at which point you will need to change the version of terrad and then resume the syncing process.

9. To sync your Phoenix mainnet node from block 4,711,800 to the most recent block, you will need to navigate to the `core` directory and change your terrad version to `v2.3.1`.
9. To sync your Phoenix mainnet node from block 4,711,800 to block 5,994,365, you will need to navigate to the `core` directory and change your terrad version to `v2.3.1`.

```sh Terminal
git checkout v2.3.1
Expand All @@ -257,7 +257,30 @@ terrad version

The result of this command should be `v2.3.1`.

10. Now, you can resume and finalize the syncing process:
10. Now, you can resume the syncing process:

```sh Terminal
terrad start
```

Syncing will halt at block 5,994,365, at which point you will need to change the version of terrad and then resume the syncing process.

11. To sync your Phoenix mainnet node from block 5,994,365 to the most recent block, you will need to navigate to the `core` directory and change your terrad version to `v2.4.0`.

```sh Terminal
git checkout v2.4.0
make install
```

Again, make sure that you have switched to the correct version of terrad by running the following command:

```sh Terminal
terrad version
```

The result of this command should be `v2.4.0`.

12. Now, you can resume and finalize the syncing process:

```sh Terminal
terrad start
Expand Down