Skip to content

Commit 0ff7686

Browse files
committed
read only
1 parent 6819510 commit 0ff7686

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • crates/lib-reth/src/reth_libmdbx/node_types

crates/lib-reth/src/reth_libmdbx/node_types/node.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,10 @@ impl NodeClientSpec for EthereumNode {
5757
let db = Arc::new(open_db_read_only(db_config.db_path, db_config.db_args)?);
5858

5959
let static_file_provider = StaticFileProvider::read_only(db_config.static_files_path.clone())?;
60-
let rocksdb_provider = RocksDBProvider::builder(&db_config.rocksdb_path)
60+
let rocksdb_provider = RocksDBProvider::builder(&db_config.rocksdb_path).with_read_only(true)
6161
.with_default_tables()
6262
.build()?;
63+
6364
let provider_factory = ProviderFactory::new(
6465
db,
6566
chain_spec.clone(),

0 commit comments

Comments
 (0)