chore: remove unused config table (#1611)

Co-authored-by: Roman Krasiuk <rokrassyuk@gmail.com>
This commit is contained in:
Bjerg
2023-03-02 17:25:06 +01:00
committed by GitHub
parent f89b504245
commit 1ae74feeb5

View File

@@ -32,7 +32,7 @@ pub enum TableType {
}
/// Default tables that should be present inside database.
pub const TABLES: [(TableType, &str); 27] = [
pub const TABLES: [(TableType, &str); 26] = [
(TableType::Table, CanonicalHeaders::const_name()),
(TableType::Table, HeaderTD::const_name()),
(TableType::Table, HeaderNumbers::const_name()),
@@ -58,7 +58,6 @@ pub const TABLES: [(TableType, &str); 27] = [
(TableType::Table, AccountsTrie::const_name()),
(TableType::DupSort, StoragesTrie::const_name()),
(TableType::Table, TxSenders::const_name()),
(TableType::Table, Config::const_name()),
(TableType::Table, SyncStage::const_name()),
];
@@ -289,11 +288,6 @@ table!(
( TxSenders ) TxNumber | Address
);
table!(
/// Configuration values.
( Config ) ConfigKey | ConfigValue
);
table!(
/// Stores the highest synced block number of each stage.
( SyncStage ) StageId | BlockNumber
@@ -311,9 +305,5 @@ pub type StageId = Vec<u8>;
// TODO: Temporary types, until they're properly defined alongside with the Encode and Decode Trait
//
/// Temporary placeholder type for DB.
pub type ConfigKey = Vec<u8>;
/// Temporary placeholder type for DB.
pub type ConfigValue = Vec<u8>;
/// Temporary placeholder type for DB.
pub type Bytecode = Vec<u8>;