diff --git a/data/coreum.ini b/data/coreum.ini index 3f5071af..5a204f65 100644 --- a/data/coreum.ini +++ b/data/coreum.ini @@ -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" \ No newline at end of file +db_backend = "pebbledb" +build_script = "https://raw.githubusercontent.com/notional-labs/cosmosia/main/data/custom_build_scripts/coreum.sh" \ No newline at end of file diff --git a/data/custom_build_scripts/coreum.sh b/data/custom_build_scripts/coreum.sh new file mode 100644 index 00000000..c15635f6 --- /dev/null +++ b/data/custom_build_scripts/coreum.sh @@ -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 \ No newline at end of file