Skip to content

Commit

Permalink
update: injective custom build script
Browse files Browse the repository at this point in the history
  • Loading branch information
hqdNotional committed Aug 1, 2024
1 parent 808835e commit 6f67620
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions data/custom_build_scripts/injective.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" ./...
go mod edit -replace github.com/cosmos/cosmos-db=github.com/notional-labs/[email protected]
go mod tidy
go mod edit -replace github.com/cockroachdb/pebble=github.com/cockroachdb/[email protected]
go mod tidy
go install -tags pebbledb -ldflags "-w -s -X github.com/cosmos/cosmos-sdk/types.DBBackend=pebbledb" ./...

0 comments on commit 6f67620

Please sign in to comment.