Skip to content

Commit

Permalink
fix for injective hard-coded using goleveldb
Browse files Browse the repository at this point in the history
  • Loading branch information
baabeetaa committed Jun 11, 2023
1 parent 5fe5145 commit 8b7ccf1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions snapshot/snapshot_restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ else
elif [[ $chain_name == "axelar" ]]; then
axelard_version=${version##*v}
go build -tags pebbledb -ldflags "-w -s -X github.com/cosmos/cosmos-sdk/types.DBBackend=pebbledb -X github.com/cosmos/cosmos-sdk/version.Version=$axelard_version" -o /root/go/bin/$daemon_name ./cmd/axelard
elif [[ $chain_name == "injective" ]]; then
# 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" ./...
else
go install -tags pebbledb -ldflags "-w -s -X github.com/cosmos/cosmos-sdk/types.DBBackend=pebbledb" ./...
fi
Expand Down

0 comments on commit 8b7ccf1

Please sign in to comment.