From d2494cec10af1d8bdfa0afc76c10b23669a6d728 Mon Sep 17 00:00:00 2001 From: zeapoz Date: Tue, 16 Apr 2024 14:09:32 +0200 Subject: [PATCH] chore: remove snapshot column handles from reconstruction db --- state-reconstruct-storage/src/reconstruction.rs | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/state-reconstruct-storage/src/reconstruction.rs b/state-reconstruct-storage/src/reconstruction.rs index b719718..e5dabaa 100644 --- a/state-reconstruct-storage/src/reconstruction.rs +++ b/state-reconstruct-storage/src/reconstruction.rs @@ -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); @@ -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))