mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat(storage, mdbx): transaction manager (#6126)
This commit is contained in:
@ -35,7 +35,10 @@ pub mod myrpc_ext;
|
||||
#[tokio::main]
|
||||
async fn main() -> eyre::Result<()> {
|
||||
// 1. Setup the DB
|
||||
let db = Arc::new(open_db_read_only(Path::new(&std::env::var("RETH_DB_PATH")?), None)?);
|
||||
let db = Arc::new(open_db_read_only(
|
||||
Path::new(&std::env::var("RETH_DB_PATH")?),
|
||||
Default::default(),
|
||||
)?);
|
||||
let spec = Arc::new(ChainSpecBuilder::mainnet().build());
|
||||
let factory = ProviderFactory::new(db.clone(), spec.clone());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user