Skip to content

Commit

Permalink
fix: add blobSidecars in db inspect
Browse files Browse the repository at this point in the history
  • Loading branch information
jingjunLi committed Nov 22, 2024
1 parent 5f38e9a commit 76fc422
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/rawdb/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -974,7 +974,7 @@ func InspectDatabase(db ethdb.Database, keyPrefix, keyStart []byte) error {
legacyTries.Add(size)
case bytes.HasPrefix(key, headerPrefix) && bytes.HasSuffix(key, headerTDSuffix):
tds.Add(size)
case bytes.HasPrefix(key, BlockBlobSidecarsPrefix) && bytes.HasSuffix(key, BlockBlobSidecarsPrefix):
case bytes.HasPrefix(key, BlockBlobSidecarsPrefix):
blobSidecars.Add(size)
case bytes.HasPrefix(key, headerPrefix) && bytes.HasSuffix(key, headerHashSuffix):
numHashPairings.Add(size)
Expand Down Expand Up @@ -1106,7 +1106,7 @@ func InspectDatabase(db ethdb.Database, keyPrefix, keyStart []byte) error {
receipts.Add(size)
case bytes.HasPrefix(key, headerPrefix) && bytes.HasSuffix(key, headerTDSuffix):
tds.Add(size)
case bytes.HasPrefix(key, BlockBlobSidecarsPrefix) && bytes.HasSuffix(key, BlockBlobSidecarsPrefix):
case bytes.HasPrefix(key, BlockBlobSidecarsPrefix):
blobSidecars.Add(size)
case bytes.HasPrefix(key, headerPrefix) && bytes.HasSuffix(key, headerHashSuffix):
numHashPairings.Add(size)
Expand Down

0 comments on commit 76fc422

Please sign in to comment.