Skip to content

Instantly share code, notes, and snippets.

@faddat
Last active March 8, 2023 02:40
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save faddat/673107b72eccdd869b242338dd17e9d9 to your computer and use it in GitHub Desktop.
Save faddat/673107b72eccdd869b242338dd17e9d9 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 ./...
@sascha1337
Copy link

oh man thanks

@mintthemoon
Copy link

Works with Kujira! Small update to use the Makefile: https://gist.github.com/mintthemoon/f9605b52809c33ea83d9cfc11e175f4e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment