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" ./...