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

Add the ability to use any Tendermint DB backend #6218

Closed
4 tasks
RiccardoM opened this issue May 14, 2020 · 0 comments · Fixed by #6219
Closed
4 tasks

Add the ability to use any Tendermint DB backend #6218

RiccardoM opened this issue May 14, 2020 · 0 comments · Fixed by #6219

Comments

@RiccardoM
Copy link
Contributor

Summary

Allow the users to use any Tendermint DB backend while creating Cosmos-specific databases.

Problem Definition

Currently when creating a new LevelDB, the only two supported database backends are LevelDB and ClevelDB. While this works great for most of the chains, someone might want to use different backends such as the ones supported by Tenderming (e.g. BoltDB or RocksDB).

Proposal

Implement such option would be a matter of changing the following lines inside the types/utils.go file:

if DBBackend == string(dbm.CLevelDBBackend) {
	backend = dbm.CLevelDBBackend
}

to become

if len(DBBackend) != 0 {
	backend = dbm.BackendType(DBBackend)
}

This change would be 100% compatible with the current code and allows for further customization while compiling the binaries.


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants