hyperledger / indy-plenum

Plenum Byzantine Fault Tolerant Protocol
https://wiki.hyperledger.org/display/indy
Apache License 2.0
215 stars 370 forks source link

Is there any replacement for leveldb? #514

Closed nobody4t closed 6 years ago

nobody4t commented 6 years ago

Can I just replace leveldb with other? If so, please give some choices. Thanks.

lovesh commented 6 years ago

@WandyLau Various usages of leveldb in the project extend a key value store interface KeyValueStorage at storage/kv_store.py. We wanted to support rocksdb too, here KeyValueStorageRocksdb at storage/kv_store_rocksdb.py. But leveldb is the only implemented option as of now

amber-zhang commented 6 years ago

@lovesh Hi, I am trying to run indy-plenum in Ubuntu container based on s390x platform. Now I installed python-leveldb manually in Ubuntu container based on s390x platform. Please see below. Also I changed the "import leveldb' into 'import python-leveldb/xenial as leveldb'. When I tried to run 'python3 -m plenum.test', I got errors " _pytest.config.ConftestImportFailure: SyntaxError('invalid syntax', ('/sovrin/build/indy-plenum/storage/kv_store_leveldb_int_keys.py', 5, 18, ' import python-leveldb/xenial as leveldb\n'))". Any ideas to import the manually installed leveldb? thanks

======python-leveldb installation info ========= apt list python-leveldb Listing... Done python-leveldb/xenial,now 0~svn68-2build4 s390x [installed]

lovesh commented 6 years ago

@amber-zhang You shouldn't need to replace import leveldb with anything? python-leveldb is the name of the ubuntu package, the python package would still be called leveldb

nobody4t commented 6 years ago

I have enable leveldb in s390 and pull a new request. let's close this issue.