Skip to content

Latest commit

 

History

History
95 lines (72 loc) · 2.31 KB

v0.12.x-upgrade.md

File metadata and controls

95 lines (72 loc) · 2.31 KB

OmniFlix Hub v0.12.x Upgrade

Note: Please use version tag v0.12.0 for this upgrade

Name: v0.12.x

When: The upgrade is scheduled for block 8054200 at Thu Aug 17 2023 2PM UTC.

Details :

  • Refactored app structure
  • Interchain accounts (only host)
  • packet forward middleware
  • patch for ITC claim tx gas spike issue

Go version

go v1.19.3+

1. Manual Method

Wait for Omniflixhub to reach the upgrade height (8054200)

Look for a panic message, followed by endless peer logs. Stop the daemon

sudo systemctl stop omniflixhubd.service

Install go v1.19.3+

# Remove previous installation
sudo rm -rf /usr/local/go

# Install correct Go version
curl https://dl.google.com/go/go1.19.3.linux-amd64.tar.gz | sudo tar -C /usr/local -zxvf -

# Check version
go version

Run the following commands:

cd $HOME/omniflixhub
git fetch --all
git checkout v0.12.0
make install

Check Version

omniflixhubd version --long

output should be

name: OmniFlixHub
server_name: omniflixhubd
version: 0.12.0
commit: 7ea844d06d9832119b8db3e2a5ae9bac8278526a
build_tags: netgo,ledger,cosmos-sdk v0.45.16
go: go version go1.19.3 linux/amd64

Restart the omniflixhubd service

sudo systemctl start omniflixhubd.service

2. Cosmovisior Method

Install and setup cosmovisor if you haven't running with cosmovisor

cosmovisor-setup.md

Build and Copy Binary

git checkout main && git pull
git checkout v0.12.0
make build && make install

# check the version - should be v0.12.0
$HOME/go/bin/omniflixhubd version --long
name: OmniFlixHub
server_name: omniflixhubd
version: 0.12.0
commit: 7ea844d06d9832119b8db3e2a5ae9bac8278526a
build_tags: netgo,ledger,cosmos-sdk v0.45.16
go: go version go1.19.3 linux/amd64

# make a dir if you haven't
mkdir -p $HOME/.omniflixhub/cosmovisor/upgrades/v0.12.x/bin

# if you are using cosmovisor you then need to copy this new binary
cp $HOME/go/bin/omniflixhubd $HOME/.omniflixhub/cosmovisor/upgrades/v0.12.x/bin

# check new version you are about to run - should be equal to v0.12.0
$HOME/.omniflixhub/cosmovisor/upgrades/v0.12.x/bin/omniflixhubd version