There was an error while loading. Please reload this page.
1 parent 6819510 commit 0ff7686Copy full SHA for 0ff7686
1 file changed
crates/lib-reth/src/reth_libmdbx/node_types/node.rs
@@ -57,9 +57,10 @@ impl NodeClientSpec for EthereumNode {
57
let db = Arc::new(open_db_read_only(db_config.db_path, db_config.db_args)?);
58
59
let static_file_provider = StaticFileProvider::read_only(db_config.static_files_path.clone())?;
60
- let rocksdb_provider = RocksDBProvider::builder(&db_config.rocksdb_path)
+ let rocksdb_provider = RocksDBProvider::builder(&db_config.rocksdb_path).with_read_only(true)
61
.with_default_tables()
62
.build()?;
63
+
64
let provider_factory = ProviderFactory::new(
65
db,
66
chain_spec.clone(),
0 commit comments