@@ -316,9 +316,8 @@ func InspectDatabase(db ethdb.Database, keyPrefix, keyStart []byte) error {
316
316
bloomTrieNodes stat
317
317
318
318
// Meta- and unaccounted data
319
- metadata stat
320
- unaccounted stat
321
- shutdownInfo stat
319
+ metadata stat
320
+ unaccounted stat
322
321
323
322
// Totals
324
323
total common.StorageSize
@@ -355,6 +354,8 @@ func InspectDatabase(db ethdb.Database, keyPrefix, keyStart []byte) error {
355
354
storageSnaps .Add (size )
356
355
case bytes .HasPrefix (key , preimagePrefix ) && len (key ) == (len (preimagePrefix )+ common .HashLength ):
357
356
preimages .Add (size )
357
+ case bytes .HasPrefix (key , configPrefix ) && len (key ) == (len (configPrefix )+ common .HashLength ):
358
+ metadata .Add (size )
358
359
case bytes .HasPrefix (key , bloomBitsPrefix ) && len (key ) == (len (bloomBitsPrefix )+ 10 + common .HashLength ):
359
360
bloomBits .Add (size )
360
361
case bytes .HasPrefix (key , BloomBitsIndexPrefix ):
@@ -369,8 +370,6 @@ func InspectDatabase(db ethdb.Database, keyPrefix, keyStart []byte) error {
369
370
bytes .HasPrefix (key , []byte ("bltIndex-" )) ||
370
371
bytes .HasPrefix (key , []byte ("bltRoot-" )): // Bloomtrie sub
371
372
bloomTrieNodes .Add (size )
372
- case bytes .Equal (key , uncleanShutdownKey ):
373
- shutdownInfo .Add (size )
374
373
default :
375
374
var accounted bool
376
375
for _ , meta := range [][]byte {
@@ -425,7 +424,6 @@ func InspectDatabase(db ethdb.Database, keyPrefix, keyStart []byte) error {
425
424
{"Key-Value store" , "Storage snapshot" , storageSnaps .Size (), storageSnaps .Count ()},
426
425
{"Key-Value store" , "Clique snapshots" , cliqueSnaps .Size (), cliqueSnaps .Count ()},
427
426
{"Key-Value store" , "Singleton metadata" , metadata .Size (), metadata .Count ()},
428
- {"Key-Value store" , "Shutdown metadata" , shutdownInfo .Size (), shutdownInfo .Count ()},
429
427
{"Ancient store" , "Headers" , ancientHeadersSize .String (), ancients .String ()},
430
428
{"Ancient store" , "Bodies" , ancientBodiesSize .String (), ancients .String ()},
431
429
{"Ancient store" , "Receipt lists" , ancientReceiptsSize .String (), ancients .String ()},
0 commit comments