Skip to content

Commit

Permalink
chore: remove snapshot column handles from reconstruction db
Browse files Browse the repository at this point in the history
  • Loading branch information
zeapoz committed Apr 16, 2024
1 parent 1426158 commit d2494ce
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions state-reconstruct-storage/src/reconstruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ use ethers::types::{U256, U64};
use eyre::Result;
use rocksdb::{Options, DB};

use crate::{
reconstruction_columns, snapshot_columns, DatabaseError, INDEX_TO_KEY_MAP, KEY_TO_INDEX_MAP,
METADATA,
};
use crate::{reconstruction_columns, DatabaseError, INDEX_TO_KEY_MAP, KEY_TO_INDEX_MAP, METADATA};

pub struct ReconstructionDatabase(DB);

Expand All @@ -29,13 +26,7 @@ impl ReconstructionDatabase {
let db = DB::open_cf(
&db_opts,
db_path,
vec![
METADATA,
INDEX_TO_KEY_MAP,
KEY_TO_INDEX_MAP,
snapshot_columns::STORAGE_LOGS,
snapshot_columns::FACTORY_DEPS,
],
vec![METADATA, INDEX_TO_KEY_MAP, KEY_TO_INDEX_MAP],
)?;

Ok(Self(db))
Expand Down

0 comments on commit d2494ce

Please sign in to comment.