From 6f67620275d0aed2e2ae6abb0ab10d7badabede0 Mon Sep 17 00:00:00 2001 From: Ha Quoc Dat Date: Fri, 2 Aug 2024 01:25:34 +0700 Subject: [PATCH] update: injective custom build script --- data/custom_build_scripts/injective.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/data/custom_build_scripts/injective.sh b/data/custom_build_scripts/injective.sh index 33b7f50b..0e45e49e 100644 --- a/data/custom_build_scripts/injective.sh +++ b/data/custom_build_scripts/injective.sh @@ -12,12 +12,15 @@ else git checkout "$p_version" fi +# fix for hard-coded using goleveldb +sed -i 's/NewGoLevelDB/NewPebbleDB/g' ./cmd/injectived/root.go +sed -i 's/NewGoLevelDB/NewPebbleDB/g' ./cmd/injectived/start.go 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 - -# fix for hard-coded using goleveldb -sed -i 's/NewGoLevelDB/NewPebbleDB/g' ./cmd/injectived/root.go -sed -i 's/NewGoLevelDB/NewPebbleDB/g' ./cmd/injectived/start.go -go install -tags pebbledb -ldflags "-w -s -X github.com/cosmos/cosmos-sdk/types.DBBackend=pebbledb" ./... \ No newline at end of file +go mod edit -replace github.com/cosmos/cosmos-db=github.com/notional-labs/cosmos-db@v1.0.0-139b9ba +go mod tidy +go mod edit -replace github.com/cockroachdb/pebble=github.com/cockroachdb/pebble@v1.0.0 +go mod tidy +go install -tags pebbledb -ldflags "-w -s -X github.com/cosmos/cosmos-sdk/types.DBBackend=pebbledb" ./...