Cosmovisor

image

Recommended Hardware: 6 Cores, 16GB RAM, 400GB of storage (NVME), 100 Mb/s

install dependencies, if needed

install go, if needed

OR (for user account)

Check version

set vars

Port: 14 (you can change to another port)

install Story-geth

install Story

Cosmovisor Setup

Install and init Cosmovisor:

create directory:

Check Story version

UPGRADE v1.3.0:

Create a directory and download the current version of story:

Check version:

result

Check upgrade info

result: {"name":"v1.3.0","time":"0001-01-01T00:00:00Z","height":6008000}

result: lrwxrwxrwx 1 story story 15 May 5 17:20 /home/story/.story/story/cosmovisor/current -> upgrades/v1.2.0

Check upgrade info:

result: {"name":"v1.3.0","time":"0001-01-01T00:00:00Z","height":6008000}

Sets up an automatic upgrade in Cosmovisor:

result:

Create service file:

init story app

set seeds and peers

download genesis and addrbook

set custom ports in story.toml file

set custom ports in config.toml file

enable prometheus and disable indexing

create geth servie file

download snapshots

backup priv_validator_state.json

remove old data and unpack Story snapshot

restore priv_validator_state.json

delete Geth data and unpack Geth snapshot

enable and start geth, story

check logs (in new Tmux)

Check sync status:

END SETUP:

Note

From now please do not stop and restart node before block 6,008,000 . Because it will run forcely with new binary.

If you need to restart the node unexpectedly, please setup again:

Remove folder

Finally Start node & setup v1.3.0 with Cosmosvisor again.

Last updated