Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
NotificationsYou must be signed in to change notification settings

vitwit/cosmos-utils

 
 

Repository files navigation

This repo contains multiple utility scripts to use/test cosmos based applications.

Test an on-chain upgrade

Clone the repo

git clone https://github.com/vitwit/cosmos-utils.gitcd cosmos-utils

Set executable permissions

chmod +x ./scripts/testnet-setup-plan-upgrade.shchmod +x ./scripts/handle-upgrade.sh

Configure ENV variables

export GH_URL=github.com/regen-network/regen-ledgerexport CHAIN_VERSION=v1.0.0export UPGRADE_VERSION=v1.1.0-alpha0export DENOM=uregenexport CHAINID=testnetexport NODE=http://localhost:26657export DAEMON=regenexport DAEMON_HOME=~/.regenexport CLI=regenexport UPGRADE_BLOCK_HEIGHT=150export UPGRADE_TITLE=v0.43.0-beta1-upgradeexport GOPATH=$HOME/goexport GOBIN=$GOPATH/bin

Start testnet and handle proposal:

./scripts/testnet-setup-plan-upgrade.sh

The script will start the testnet. It creates a software-upgrade proposal, sends deposit and votes for it.

Just wait for the chain to hit upgrade height and chain will halt there.

You can checksudo service $DAEMON status for the current height or query the chainconsensus_state usingcurl http://localhost:26657/consensus_state

Handle upgrade

Ensure you execute this script only after hitting the upgrade height (i.e., 80 as mentioned in the testnet setup script)

Check the$DAEMON status to confirm if the chain is waiting for the upgrade.sudo service $DAEMON status

You should see a message like:UPGRADE "<upgrade-name-here>" NEEDED at height: 150: module=main

./scripts/handle-upgrade.sh

Check the$DAEMON status, it should start producing the blocks again.sudo service $DAEMON status

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell52.2%
  • Go39.9%
  • Vue5.2%
  • Python1.6%
  • Other1.1%

[8]ページ先頭

©2009-2025 Movatter.jp