diff --git a/core/src/state/state_storage.rs b/core/src/state/state_storage.rs index e7eb4f03..50835357 100644 --- a/core/src/state/state_storage.rs +++ b/core/src/state/state_storage.rs @@ -153,14 +153,16 @@ impl StateStorage { contract_addr: &TreeValue, code_hash: &Vec, ) -> Result<(), StateError> { - let mut batch = WriteBatch::default(); - let cf = self - .db - .cf_sequencer_handle(SequencerColumnFamily::ContractMap); - let code_key = tree_key_to_u8_arr(contract_addr); - batch.put_cf(cf, &code_key, code_hash); - - self.db.write(batch).map_err(StateError::StorageIoError) + // todo to be deleted + // let mut batch = WriteBatch::default(); + // let cf = self + // .db + // .cf_sequencer_handle(SequencerColumnFamily::ContractMap); + // let code_key = tree_key_to_u8_arr(contract_addr); + // batch.put_cf(cf, &code_key, code_hash); + + // self.db.write(batch).map_err(StateError::StorageIoError) + Ok(()) } pub fn get_contract_map(&self, contract_addr: &TreeValue) -> Result, StateError> { diff --git a/core/src/storage/db.rs b/core/src/storage/db.rs index 50239f96..806bdd22 100644 --- a/core/src/storage/db.rs +++ b/core/src/storage/db.rs @@ -39,7 +39,6 @@ pub enum StateKeeperColumnFamily { Contracts, Prophets, Debugs, - // ContractMap, FactoryDeps, } @@ -48,7 +47,6 @@ pub enum SequencerColumnFamily { State, Contracts, FactoryDeps, - ContractMap, } impl MerkleTreeColumnFamily { @@ -72,12 +70,7 @@ impl StateKeeperColumnFamily { impl SequencerColumnFamily { fn all() -> &'static [Self] { - &[ - Self::State, - Self::Contracts, - Self::FactoryDeps, - Self::ContractMap, - ] + &[Self::State, Self::Contracts, Self::FactoryDeps] } } @@ -110,7 +103,6 @@ impl std::fmt::Display for SequencerColumnFamily { Self::State => "state", Self::Contracts => "contracts", Self::FactoryDeps => "factory_deps", - Self::ContractMap => "contract_map", }; write!(formatter, "{}", value) }