Skip to content

Instantly share code, notes, and snippets.

@duccas
Forked from faddat/pebble-with-mev.bash
Created January 22, 2023 11:00
Show Gist options
  • Save duccas/9031ac28ddc239a597fbb968b88dcae6 to your computer and use it in GitHub Desktop.
Save duccas/9031ac28ddc239a597fbb968b88dcae6 to your computer and use it in GitHub Desktop.
use pebbledb and mev-tendermint on any cosmos chain
go mod edit -replace github.com/tendermint/tm-db=github.com/baabeetaa/tm-db@pebble
go mod tidy
go mod edit -replace github.com/tendermint/tendermint=github.com/notional-labs/mev-tendermint@0db69e64a2e87bb29b4417780da30630df97cadd
go mod tidy
go install -ldflags '-w -s -X github.com/cosmos/cosmos-sdk/types.DBBackend=pebbledb -X github.com/tendermint/tm-db.ForceSync=1' -tags pebbledb ./...
go mod edit -replace github.com/tendermint/tm-db=github.com/baabeetaa/tm-db@pebble
go mod tidy
go install -ldflags '-w -s -X github.com/cosmos/cosmos-sdk/types.DBBackend=pebbledb -X github.com/tendermint/tm-db.ForceSync=1' -tags pebbledb ./...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment