Skip to content

Commit

Permalink
update readme to new mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
slandymani committed Jan 18, 2022
1 parent e104c5f commit f1514ee
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 17 deletions.
56 changes: 40 additions & 16 deletions mainnets/odin-mainnet-freya/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# ODIN MAINNET FREYA

## First part is to submit the gentx. >> NOW CLOSED <<

## Hardware Requirements
* **Minimal**
* 4 GB RAM
Expand All @@ -17,6 +15,7 @@
* **Recommended**
* Linux(x86_64)


## Installation Steps
#### 1. Basic Packages
```bash:
Expand Down Expand Up @@ -50,13 +49,11 @@ go version

Output should be: `go version go1.17.3 linux/amd64`


<a id="install-odind"></a>
### Install Odind from source

#### 1. Clone repository

>Prerequisite: git. [ref](https://github.com/git/git)
>Optional requirement: GNU make. [ref](https://www.gnu.org/software/make/manual/html_node/index.html)
* Clone git repository
```shell
git clone https://github.com/GeoDB-Limited/odin-core.git
Expand All @@ -65,7 +62,7 @@ git clone https://github.com/GeoDB-Limited/odin-core.git
```shell
cd odin-core
git fetch --tags
git checkout v0.2.0
git checkout v0.3.0-x.1
```
#### 2. Install CLI
```shell
Expand All @@ -77,7 +74,9 @@ To confirm that the installation was successful, you can run:
```bash:
odind version
```
Output should be: `v0.2.0`
Output should be: `v0.3.0-x.1`

## Instruction for new validators

### Init
This step is essential to init a `secp256k1` (required) key instead of `ed25519` (default)
Expand Down Expand Up @@ -113,23 +112,20 @@ odind keys show <key-name> -a
## Validator Setup Instructions

### Set minimum gas fees
```bash:
perl -i -pe 's/^minimum-gas-prices = .+?$/minimum-gas-prices = "0.0125loki"/' ~/.odin/config/app.toml
```

### Add persistent peers
Provided is a small list of peers, however more can be found the `peers.txt` file
```bash:
PEERS="[email protected]:26656,[email protected]:26766,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656"
PEERS="[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656"
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" ~/.odin/config/config.toml
```

### Download genesis file
### Download new genesis file
```bash:
curl https://raw.githubusercontent.com/ODIN-PROTOCOL/networks/master/mainnets/odin-mainnet-freya/final_genesis.json > ~/.odin/config/genesis.json
```

Verify the hash `283af746fe979c937965f33faa79b2a84badbd136eec434e44d14d552c1e88e8`:
```
jq -S -c -M ' ' ~/.odin/config/genesis.json | shasum -a 256
curl https://raw.githubusercontent.com/ODIN-PROTOCOL/networks/master/mainnets/odin-mainnet-freya/genesis.json > ~/.odin/config/genesis.json
```

### Setup Unit/Daemon file
Expand Down Expand Up @@ -174,7 +170,6 @@ journalctl -u odin.service -f
Congratulations! You now have a full node. Once the node is synced with the network,
you can then make your node a validator.


### Create validator
1. Transfer funds to your validator address. A minimum of 1 ODIN (1000000loki) is required to start a validator.

Expand Down Expand Up @@ -212,3 +207,32 @@ odind q staking validators | grep moniker
priv_validator_key.json
node_key.json
```

## Instruction for old validators

### Stop node
```bash:
systemctl stop odin.service
```

### Install latest Odind from source

[Install latest Odind](#install-odind)

### Download genesis file
```bash:
curl https://raw.githubusercontent.com/ODIN-PROTOCOL/networks/master/mainnets/odin-mainnet-freya/genesis.json > ~/.odin/config/genesis.json
```

### Clean old state

```bash:
odind unsafe-reset-all
```

### Rerun node
```bash:
systemctl daemon-reload
systemctl start odin.service
```

2 changes: 1 addition & 1 deletion mainnets/odin-mainnet-freya/peers.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Foundation nodes:
[email protected]:26656,[email protected]:26656,[email protected]:26656
[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656

Validators:
[email protected]:26656
Expand Down

0 comments on commit f1514ee

Please sign in to comment.