I’m having trouble compiling and using Tendermint with cleveldb.
Followed the instructions for compiling with cleveldb - completed without obvious errors.
I then amended the
db_backend field in my apps config. On starting a fresh chain I get this error:
unknown db_backend cleveldb, expected one of memdb,goleveldb
initDBs() function here I can see that the config has the correct value - i.e.
config.DBBackend == "cleveldb".
The app works fine with “golevelb” selected in the
config.toml, even though the Tendermint binary was compiled with the cleveldb option - so I’m guessing it has not compiled properly.
If I have compiled TM with cleveldb support, should the app be able to start with the goleveldb option?
Is there a way to check that I have compiled TM with cleveldb properly?
I’m relatively new to Golang and I’m confused that there are no cleveldb related build tags throughout the TM codebase. Can someone explain the purpose of the ‘cleveldb’ build tags in the Make recipe?
Would appreciate some help - thanks in advance.