LocalNet Upgrade Testing
CURRENT_HEIGHT=$(./release_binaries/pocket_darwin_arm64 q consensus comet block-latest -o json | jq '.sdk_block.last_commit.height' | tr -d '"')
UPGRADE_HEIGHT=$((CURRENT_HEIGHT + 20))
sed -i.bak "s/\"height\": \"[^\"]*\"/\"height\": \"$UPGRADE_HEIGHT\"/" tools/scripts/upgrades/upgrade_tx_v0.1.2_local.json
cat ./tools/scripts/upgrades/upgrade_tx_v0.1.2_local.json1
2
3
[Advanced] Fast Iteration for Local Changes
This is rough and advanced. We will update and streamline this section in the future — use at your own risk for now.
Setup (one time)
One time setup & preparation to test local changes.
Old repo:
# Checkout the previous release
git checkout v<previous_release_tag>
# Prepare the release
make release_tag_local_testing
# Rebuild the binary
make go_develop ignite_release_local ignite_release_extract_binaries
# Reset to genesis
./release_binaries/pocket_darwin_arm64 comet unsafe-reset-all && make localnet_regenesis
# Start the binary
./release_binaries/pocket_darwin_arm64 startNew repo:
Iterate (repeated)
The steps you'll be repeating many times through the process.
Old repo:
New repo:
Last updated
Was this helpful?
