From 41f962f05cd2ebc6f4d3742f7aaa69c951ded2fb Mon Sep 17 00:00:00 2001 From: peinlcy Date: Fri, 2 Feb 2024 17:39:47 +0800 Subject: [PATCH] remove create merkle tree db --- zk-vm/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zk-vm/src/lib.rs b/zk-vm/src/lib.rs index fc585b60..ee4ac2b2 100644 --- a/zk-vm/src/lib.rs +++ b/zk-vm/src/lib.rs @@ -51,8 +51,8 @@ pub struct OlaVM { impl OlaVM { pub fn new(tree_db_path: &Path, state_db_path: &Path, ctx_info: TxCtxInfo) -> Self { - let acc_db = RocksDB::new(Database::MerkleTree, tree_db_path, false); - let account_tree = AccountTree::new(acc_db); + // let acc_db = RocksDB::new(Database::MerkleTree, tree_db_path, false); + // let account_tree = AccountTree::new(acc_db); let state_db = RocksDB::new(Database::Sequencer, state_db_path, false); let ola_state = NodeState::new( @@ -73,7 +73,7 @@ impl OlaVM { } pub fn new_call(tree_db_path: &Path, state_db_path: &Path, ctx_info: TxCtxInfo) -> Self { - let acc_db = RocksDB::new(Database::MerkleTree, tree_db_path, false); + // let acc_db = RocksDB::new(Database::MerkleTree, tree_db_path, false); // let account_tree = AccountTree::new(acc_db); let state_db = RocksDB::new(Database::Sequencer, state_db_path, false); let ola_state = NodeState::new(