Skip to content

Commit

Permalink
upgrade: coreum v4.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
baabeetaa committed Jul 24, 2024
1 parent 0bdc66b commit 9b58243
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
5 changes: 3 additions & 2 deletions data/coreum.ini
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
git_repo = "https://github.com/CoreumFoundation/coreum"
version = "v3.0.2"
version = "v4.0.1"
daemon_name = "cored"
node_home = "$HOME/.core/coreum-mainnet-1"
minimum_gas_prices = "0.03125ucore"
start_flags = "--p2p.seeds=0df493af80fbaad41b9b26d6f4520b39ceb1d210@seed-iron.mainnet-1.coreum.dev:26656,cba16f4f32707d70a2a2d10861fac897f1e9aaa1@seed-nickle.mainnet-1.coreum.dev:26656,67ecf3e890b2f77b13fc872c8f11f868c283be6e@rpc.coreum.nodexcapital.com:14156"
snapshot_prune = "cosmos-pruner"
network = "net2"
db_backend = "pebbledb"
db_backend = "pebbledb"
build_script = "https://raw.githubusercontent.com/notional-labs/cosmosia/main/data/custom_build_scripts/coreum.sh"
21 changes: 21 additions & 0 deletions data/custom_build_scripts/coreum.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
cd $HOME

if [[ -z $upgrading ]]; then
git clone --single-branch --branch $version $git_repo
repo_name=$(basename $git_repo |cut -d. -f1)
cd $repo_name
else
repo_name=$(basename $git_repo |cut -d. -f1)
cd $repo_name
git reset --hard
git fetch --all --tags
git checkout "$p_version"
fi


go mod edit -replace github.com/tendermint/tm-db=github.com/notional-labs/tm-db@pebble
go mod tidy
go mod edit -replace github.com/cometbft/cometbft-db=github.com/notional-labs/cometbft-db@pebble
go mod tidy

go install -tags pebbledb -ldflags "-w -s -X github.com/cosmos/cosmos-sdk/types.DBBackend=pebbledb" ./cmd/cored

0 comments on commit 9b58243

Please sign in to comment.