Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Extract the hard dependency on rocksdb from the light client #8034

Merged
merged 2 commits into from
Mar 1, 2018

Conversation

tomaka
Copy link
Contributor

@tomaka tomaka commented Mar 1, 2018

This PR removes the dependency from the light client towards kvdb_rocksdb, so that we can use other backends (such as kvdb_memory) if we want.
Instead of passing the path to the database to the client, we directly open the database from the parity crate and pass it to LightClient::new.

Ideally we would like to do the same for the full client. However the snapshot creation and restoration is very difficult to convert as it directly manipulates raw files. If this PR is merged, an issue should be opened to be reminded to do this eventually.

cc #7915

@parity-cla-bot
Copy link

It looks like @tomaka signed our Contributor License Agreement. 👍

Many thanks,

Parity Technologies CLA Bot

@debris debris added A8-looksgood 🦄 Pull request is reviewed well. M4-core ⛓ Core client code / Rust. labels Mar 1, 2018
@5chdn 5chdn added this to the 1.11 milestone Mar 1, 2018
@5chdn 5chdn merged commit d4205da into openethereum:master Mar 1, 2018
@tomaka tomaka deleted the generic-db branch March 1, 2018 23:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well. M4-core ⛓ Core client code / Rust.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants