Skip to content

Commit

Permalink
remove create merkle tree db
Browse files Browse the repository at this point in the history
  • Loading branch information
peinlcy committed Feb 2, 2024
1 parent 5525ae1 commit 41f962f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions zk-vm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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(
Expand Down

0 comments on commit 41f962f

Please sign in to comment.