Skip to content

Commit

Permalink
add blob db cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
blxdyx committed Dec 18, 2024
1 parent 09007e7 commit e96d140
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions erigon-lib/kv/tables.go
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,6 @@ var ConsensusTables = append([]string{
ChaindataTables..., //TODO: move bor tables from chaintables to `ConsensusTables`
)

var BscBlobTables = []string{}
var HeimdallTables = []string{}
var PolygonBridgeTables = []string{}
var DownloaderTables = []string{
Expand Down Expand Up @@ -625,7 +624,6 @@ var DownloaderTablesCfg = TableCfg{}
var DiagnosticsTablesCfg = TableCfg{}
var HeimdallTablesCfg = TableCfg{}
var PolygonBridgeTablesCfg = TableCfg{}
var BscBlobTablesCfg = TableCfg{}
var ReconTablesCfg = TableCfg{
PlainStateD: {Flags: DupSort},
CodeD: {Flags: DupSort},
Expand All @@ -634,7 +632,7 @@ var ReconTablesCfg = TableCfg{

func TablesCfgByLabel(label Label) TableCfg {
switch label {
case ChainDB, TemporaryDB, CaplinDB: //TODO: move caplindb tables to own table config
case ChainDB, TemporaryDB, CaplinDB, BlobDb: //TODO: move caplindb tables to own table config
return ChaindataTablesCfg
case TxPoolDB:
return TxpoolTablesCfg
Expand All @@ -650,8 +648,6 @@ func TablesCfgByLabel(label Label) TableCfg {
return PolygonBridgeTablesCfg
case ConsensusDB:
return ConsensusTablesCfg
case BlobDb:
return BscBlobTablesCfg
default:
panic(fmt.Sprintf("unexpected label: %s", label))
}
Expand Down Expand Up @@ -740,12 +736,6 @@ func reinit() {
PolygonBridgeTablesCfg[name] = TableCfgItem{}
}
}
for _, name := range BscBlobTables {
_, ok := BscBlobTablesCfg[name]
if !ok {
BscBlobTablesCfg[name] = TableCfgItem{}
}
}
}

// Temporal
Expand Down

0 comments on commit e96d140

Please sign in to comment.