Files
osmosis-labs-osmosis/scripts/archivenode.bash
PaddyMc 5494ad8992 feat: upgrade sdk to v0.47.x (#6413)
* chore: update all deps to v0.47.5

* chore: remove most references to outdated simapp functions

* chore: remove rest endpoints

* chore: swap simapp.FundAccount to bank.testutil.FundAccount for modules

* chore: remove wasm client and go.mod replace for grpc

* chore: fix osmoutils imports

* chore: fix ibc-hooks imports

* chore: final fixes to compile

* chore: skd.StoreKey changed storetypes.StoreKey in tokenfactory

* update gomods

* large push unfork work (mainly modules)

* more changes

* add SimAppChainID

* more fixes

* push before flight

* get it to compile

* temp local replace

* update go mods

* changelog

* update all gomods

* Revert "update all gomods"

This reverts commit 32f7f9939c.

* dont use simapp

* remove simapp

* more go mod fixes

* more go mod changes, disable go work

* change unforktodo to unforkingtodo

* fix ibc unforking todos

* set sequence from -1 to 0

* further get through unforking comments, add secondary label

* address more comments

* fix further lints

* Auto: update go.mod after push to chore/update-to-v0.47.x that modified dependencies locally

* attempt to fix go mod

* Auto: update go.mod after push to chore/update-to-v0.47.x that modified dependencies locally

* cometbft to 37.2 instead of 38

* Auto: update go.mod after push to chore/update-to-v0.47.x that modified dependencies locally

* go mod tidy

* address comments

* unforkingtodo to unforkingnote

* remove invalid FastSync config

* unforking notes for simulator

* change upgrade code to unforkingnote

* simulation section of upgrading

* import runtime.AppI interface

* remove reference to beta3

* Auto: update go.mod after push to chore/update-to-v0.47.x that modified dependencies locally

* beta2

* v20

* Auto: update go.mod after push to chore/update-to-v0.47.x that modified dependencies locally

* math bump

* require it, idk why it keeps switching

* replace gogo with cosmos gogoproto imports

* update osmov20

* remove old proto

* Revert "remove old proto"

This reverts commit c8857bd135.

* Revert "update osmov20"

This reverts commit c212beaa59.

* Revert "remove old proto"

This reverts commit c8857bd135.

* Revert "replace gogo with cosmos gogoproto imports"

This reverts commit 8b7fe475d1.

* initial attempt at changing to cosmos proto

* local replaces for v20

* Auto: update go.mod after push to chore/update-to-v0.47.x that modified dependencies locally

* manual removal of gogo so we can remove from go mod

* fix wiring

* test fixes

* more test fixes

* more test fixes

* tests

* fix e2e init

* fixes

* script

* wasmbindings fixes

* fix mint

* comment out test

* Fix superfluid & tokenfactory

* chore: fix x/epochs tests

* chore: fix x/ibc-rate-limit tests

* Fix ibc-hooks (and its tests) (#6752)

* initial unfork test changes

* fix bad marshalling

* remove wasmd override

* change gas test

* fix upgrade test

* disable simulator

* network

* cli

* remove local replaces

* add proto replace

* Auto: update go.mod after push to chore/update-to-v0.47.x that modified dependencies locally

* add genesis block antehandle logic

* protobuf

* go mods

* go mod

* Auto: update go.mod after push to chore/update-to-v0.47.x that modified dependencies locally

* wave of fixes highlighted from e2e

* proto changes

* Auto: update go.mod after push to chore/update-to-v0.47.x that modified dependencies locally

* remove gogo/protobuf manually

* manual remove gogo from everything

* mod

* regen replace

* Auto: update go.mod after push to chore/update-to-v0.47.x that modified dependencies locally

* proto gen

* script debug ci

* test

* test

* test

* update buf

* update script

* create dir

* specify output

* test

* test

* downgrade proto builder

* test

* test

* chmod

* buf version

* debug

* test

* Generated protofile changes

* FINALLY

* revert

* revert 14 to 13.1

* oops

* upgrade version

* lints

* lints

* add nolints

* more lints

* more lints

* more lints

* add temp fix

* possibly revert, remove exclude for beta3

* Auto: update go.mod after push to chore/update-to-v0.47.x that modified dependencies locally

* Revert "Auto: update go.mod after push to chore/update-to-v0.47.x that modified dependencies locally"

This reverts commit 9c671b118a.

* Revert "possibly revert, remove exclude for beta3"

This reverts commit f7c4377c8a.

* add fee grant

* remove install buf step

* fixes

* default message validator for genutil

* add chain-id to test

* reset chain id

* ibcfeekeeper, upgrade store remove, chainid

* init ibc fee keeper

* use rate limit instead of fee keeper

* crisis to store upgrade

* move to v21 upgrade handler

* implement POB

* finish upgrade handler

* small changes from review

* passby review

* e2e

* attempt block time over heights

* change x exp go mod version

* Auto: update go.mod after push to chore/update-to-v0.47.x that modified dependencies locally

* exp ver

* Auto: update go.mod after push to chore/update-to-v0.47.x that modified dependencies locally

* replace line for exp

* Auto: update go.mod after push to chore/update-to-v0.47.x that modified dependencies locally

* use v1.4.10 instead of v1.4.11

* Auto: update go.mod after push to chore/update-to-v0.47.x that modified dependencies locally

* use newest osmosis version of cosmos sdk v47

* Auto: update go.mod after push to chore/update-to-v0.47.x that modified dependencies locally

* reduce flakiness for e2e with new sdk logic

* more e2e tweaking

* change fork branch to neater branch

* downgrade cosmossdk math

* Auto: update go.mod after push to chore/update-to-v0.47.x that modified dependencies locally

* drop down osmomath versions

* Auto: update go.mod after push to chore/update-to-v0.47.x that modified dependencies locally

* sdk math down

* Auto: update go.mod after push to chore/update-to-v0.47.x that modified dependencies locally

* makefile change

* math bump down

* add exclude

* set gov to v2

* Generated protofile changes

* e2e flakiness

* slight extension to vote period e2e

* debugging

* add more e2e err logs

* logs

* potentially revert go mod changes

* Auto: update go.mod after push to chore/update-to-v0.47.x that modified dependencies locally

* Revert "Auto: update go.mod after push to chore/update-to-v0.47.x that modified dependencies locally"

This reverts commit c942be4327.

* Revert "potentially revert go mod changes"

This reverts commit d3f3eafb07.

* run tidy

* enable everything in go work

* Auto: update go.mod after push to chore/update-to-v0.47.x that modified dependencies locally

* switch v20

* exclusions

* fix make build

* block sdk in place of pob

* modify pob

* remove group, fee, and nft

* comment out

* upgrade math package

* go mod

* Auto: update go.mod after push to chore/update-to-v0.47.x that modified dependencies locally

* go mod updates

* implement expedited props

* Auto: update go.mod after push to chore/update-to-v0.47.x that modified dependencies locally

* remove redundant flags

* Auto: update go.mod after push to chore/update-to-v0.47.x that modified dependencies locally

* expedited prop

* lint

---------

Co-authored-by: Adam Tucker <adamleetucker@outlook.com>
Co-authored-by: Nicolas Lara <nicolaslara@gmail.com>
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: mattverse <mattpark1028@gmail.com>
2023-11-09 11:01:51 -06:00

98 lines
3.6 KiB
Bash

#!/bin/bash
# Archive node script
# NB: you can also download archives at quicksync:
# https://quicksync.io/networks/osmosis.html
# 2nd NB: you can change OSMOSISD_PRUNING=nothing to OSMOSISD_PRUNING=default OR you could also set the pruning settings manually with OSMOSISD_PRUNING=custom
# 3rd NB: you might want to use this to test different databases, and to do that my recommended technique is like:
# go install -ldflags '-w -s -X github.com/cosmos/cosmos-sdk/types.DBBackend=rocksdb' -tags rocksdb ./...
# if you do not use the ldflags thing you won't use the chosen db for everything, so best use it.
# The goal of this script is to provide a way to audit:
# * Data availability
# * Database performance when synchronizing (will add variables for different DB's after a successful run)
# * Size on disk for archives when using different databases
export OSMOSISD_PRUNING=nothing
export OSMOSISD_DB_BACKEND=pebbledb
export OSMOSISD_P2P_MAX_NUM_OUTBOUND_PEERS=500
export OSMOSISD_P2P_MAX_NUM_INBOUND_PEERS=500
export OSMOSISD_P2P_SEEDS=$(curl -s https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/chain.json | jq -r '[foreach .peers.seeds[] as $item (""; "\($item.id)@\($item.address)")] | join(",")')
export OSMOSISD_P2P_LADDR=tcp://0.0.0.0:2001
# VERSION THREE
echo "v3 took" > howlong
git checkout v3.x
go mod edit -replace github.com/cometbft/cometbft-db=github.com/notional-labs/tm-db@136c7b6
go mod tidy
go install -ldflags '-w -s -X github.com/cosmos/cosmos-sdk/types.DBBackend=pebbledb' -tags pebbledb ./...
osmosisd init speedrun
wget -O ~/.osmosisd/config/genesis.json https://github.com/osmosis-labs/networks/raw/main/osmosis-1/genesis.json
osmosisd start --db_backend pebbledb
git reset --hard
# VERSION FOUR
echo "v4 took" >> howlong
git checkout v4.x
go mod edit -replace github.com/cometbft/cometbft-db=github.com/notional-labs/tm-db@136c7b6
go mod tidy
go install -ldflags '-w -s -X github.com/cosmos/cosmos-sdk/types.DBBackend=pebbledb' -tags pebbledb ./...
osmosisd start --db_backend pebbledb
git reset --hard
# VERSION SIX
echo "v6 took" >> howlong
git checkout v6.x
go mod edit -replace github.com/cometbft/cometbft-db=github.com/notional-labs/tm-db@136c7b6
go mod tidy
go install -ldflags '-w -s -X github.com/cosmos/cosmos-sdk/types.DBBackend=pebbledb' -tags pebbledb ./...
osmosisd start --db_backend pebbledb
git reset --hard
# VERSION SEVEN
echo "v7 took" >> howlong
git checkout v7.x
go mod edit -replace github.com/cometbft/cometbft-db=github.com/notional-labs/tm-db@136c7b6
go mod tidy
go install -ldflags '-w -s -X github.com/cosmos/cosmos-sdk/types.DBBackend=pebbledb' -tags pebbledb ./...
osmosisd start --db_backend pebbledb
git reset --hard
# VERSION EIGHT
echo "v8 took" >> howlong
git checkout v8.x
go mod edit -replace github.com/cometbft/cometbft-db=github.com/notional-labs/tm-db@136c7b6
go mod tidy
go install -ldflags '-w -s -X github.com/cosmos/cosmos-sdk/types.DBBackend=pebbledb' -tags pebbledb ./...
osmosisd start --db_backend pebbledb
git reset --hard
# VERSION NINE
echo "v9 took" >> howlong
git checkout v9.x
go mod edit -replace github.com/cometbft/cometbft-db=github.com/notional-labs/tm-db@136c7b6
go mod tidy
go install -ldflags '-w -s -X github.com/cosmos/cosmos-sdk/types.DBBackend=pebbledb' -tags pebbledb ./...time osmosisd start --db_backend pebbledb
osmosisd start --db_backend pebbledb
git reset --hard
# VERSION TEN
echo "v10 took" >> howlong
git checkout v10.x
go mod edit -replace github.com/cometbft/cometbft-db=github.com/notional-labs/tm-db@136c7b6
go mod tidy
go install -ldflags '-w -s -X github.com/cosmos/cosmos-sdk/types.DBBackend=pebbledb' -tags pebbledb ./...
osmosisd start --db_backend pebbledb