Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support pebble in the default build #55

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

faddat
Copy link
Contributor

@faddat faddat commented Feb 16, 2023

This PR allows mars to support pebble-db in its default build.

To ensure that it's used as default, do like:

go install -ldflags '-w -s -X github.com/cosmos/cosmos-sdk/types.DBBackend=pebbledb -X github.com/tendermint/tm-db.ForceSync=1' -tags pebbledb ./...
marsd start --db_backend pebbledb

go install ./... will use goleveldb

@larry0x
Copy link
Contributor

larry0x commented Feb 16, 2023

To ensure that it's used as default, do like:

go install -ldflags '-w -s -X github.com/cosmos/cosmos-sdk/types.DBBackend=pebbledb -X github.com/tendermint/tm-db.ForceSync=1' -tags pebbledb ./...

marsd start --db_backend pebbledb

Ideally we edit the Makefile to make this easy to do e.g.

MARS_BUILD_OPTIONS=pebbledb make install

@faddat
Copy link
Contributor Author

faddat commented May 27, 2023

kinda think that

is better

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants