mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat(db): Refactor storage libraries (#371)
This commit is contained in:
@ -9,7 +9,7 @@ readme = "README.md"
|
||||
[dependencies]
|
||||
# reth
|
||||
reth-primitives = { path = "../../crates/primitives" }
|
||||
reth-db = {path = "../../crates/db"}
|
||||
reth-db = {path = "../../crates/storage/db", features = ["mdbx"]}
|
||||
reth-stages = {path = "../../crates/stages"}
|
||||
reth-interfaces = {path = "../../crates/interfaces"}
|
||||
reth-transaction-pool = {path = "../../crates/transaction-pool"}
|
||||
|
||||
@ -24,9 +24,9 @@ impl Command {
|
||||
let path = shellexpand::full(&self.db)?.into_owned();
|
||||
let expanded_db_path = Path::new(&path);
|
||||
std::fs::create_dir_all(expanded_db_path)?;
|
||||
let db = Arc::new(reth_db::kv::Env::<reth_db::mdbx::WriteMap>::open(
|
||||
let db = Arc::new(reth_db::mdbx::Env::<reth_db::mdbx::WriteMap>::open(
|
||||
expanded_db_path,
|
||||
reth_db::kv::EnvKind::RW,
|
||||
reth_db::mdbx::EnvKind::RW,
|
||||
)?);
|
||||
info!("DB opened");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user