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

Docs / Update mainnet in the readme #250

Merged
merged 1 commit into from
Sep 8, 2023
Merged
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
45 changes: 35 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ or
- Initialize node

```shell
sged init {{NODE_NAME}} --chain-id sge-network-3
sged init {{NODE_NAME}} --chain-id sgenet-1
```

Select network to join
Expand All @@ -138,22 +138,48 @@ sged start

| Version | Mainnet | Testnet | SDK Version |
|:-------:|:-------:|:-------:|:-----------:|
| v1.0.1 | | ✓ | v0.45.16 |
| v1.1.0 | | ✓ | v0.46.14 |

## Active Networks

### Mainnet

Coming Soon!!
- [sgenet-1](https://github.com/sge-network/networks/tree/master/mainnet/sgenet-1)

- Place the genesis file with the genesis file of the chain.

```shell
wget https://github.com/sge-network/networks/blob/master/mainnet/sgenet-1/genesis.json -O ~/.sge/config/genesis.json
```

Verify genesis hash sum

```shell
sha256sum ~/.sge/config/genesis.json
```

Correct sha256 sum for sgenet-1 genesis file is 3beb0662ade1ad80d41d992bb196770d53a939863c1fed12fa01411dfb981e0b

- Add `persistent_peers` or `seeds` in `${HOME}/.sge/config/config.toml`

```shell
sed -i 's\persistent_peers = ""\persistent_peers = "[email protected]:26656,[email protected]:26656,[email protected]:17756,[email protected]:36656,[email protected]:17756,[email protected]:17756,033d3698baf8488429cf2af86ce7d7ad81780a39@[2001:bc8:702:1841::226]:26656,[email protected]:26656,[email protected]:16656,[email protected]:26656,[email protected]:26656,[email protected]:11156"\g' $HOME/.sge/config/config.toml
```

- Start node

```shell
sged start --minimum-gas-prices [desired-gas-price(ex. 0.001usge)]
```

### Testnet

- [sge-network-3](https://github.com/sge-network/networks/sge-network-3)
- [sge-network-3](https://github.com/sge-network/networks/tree/master/testnet/sge-network-3)

- Place the genesis file with the genesis file of the chain.

```shell
wget https://github.com/sge-network/networks/blob/master/sge-network-3/genesis.json -O ~/.sge/config/genesis.json
wget https://github.com/sge-network/networks/blob/master/testnet/sge-network-3/genesis.json -O ~/.sge/config/genesis.json
```

Verify genesis hash sum
Expand All @@ -162,13 +188,12 @@ Verify genesis hash sum
sha256sum ~/.sge/config/genesis.json
```

Correct sha256 sum for sge-network-3 is - (waiting for the genesis file)
Genesis file sha sum is published in according repository.
Correct sha256 sum for sge-network-3 genesis file is caa7f15bab24a87718bff96ffeee058373154f7701a1e8977fff46d2f620dbcb

- Add `persistent_peers` or `seeds` in `${HOME}/.sge/config/config.toml`

```shell
sed -i '/s/persistent_peers = ""/persistent_peers = "[email protected]:26656,[email protected]:26656/g' $HOME/.sge/config/config.toml
sed -i 's\persistent_peers = ""\persistent_peers = "[email protected]:26656,[email protected]:20656,[email protected]:26656,[email protected]:26656,1e5f1fa5725ab5e09209b7935c6ea3f57b2711ed@[2a01:4f9:1a:9462::3]:26656,[email protected]:26656,[email protected]:26656,[email protected]:56656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:17756,[email protected]:26656,[email protected]:17256,[email protected]:26656"\g' $HOME/.sge/config/config.toml
```

- Start node
Expand All @@ -184,7 +209,7 @@ sged start
- Add genesis account `sged add-genesis-account [genesis_key_name] 1000000000usge`
- Create a validator at genesis `sged gentx [genesis_key_name] 500000000usge --chain-id [chain_name]`
- Collect genesis transactions `sged collect-gentxs`
- Start node `sged start`
- Start node `sged start --minimum-gas-prices [desired-gas-price(ex. 0.001usge)]`

### Reset chain

Expand All @@ -206,4 +231,4 @@ sged version

### Documentations

For the most up to date documentation please visit [Gitbook](https://six-sigma-sports.gitbook.io/documentation/)
For the most up to date documentation please visit [Gitbook](https://sgenetwork.gitbook.io/documentation-1/)
Loading