Skip to content

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