File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -125,8 +125,8 @@ var (
125
125
StateHistoryIndexPrefix = []byte ("m" ) // The global prefix of state history index data
126
126
StateHistoryAccountMetadataPrefix = []byte ("ma" ) // StateHistoryAccountMetadataPrefix + account address hash => account metadata
127
127
StateHistoryStorageMetadataPrefix = []byte ("ms" ) // StateHistoryStorageMetadataPrefix + account address hash + storage slot hash => slot metadata
128
- StateHistoryAccountBlockPrefix = []byte ("mba" ) // StateHistoryAccountBlockPrefix + account address hash + block_number => account block
129
- StateHistoryStorageBlockPrefix = []byte ("mbs" ) // StateHistoryStorageBlockPrefix + account address hash + storage slot hash + block_number => slot block
128
+ StateHistoryAccountBlockPrefix = []byte ("mba" ) // StateHistoryAccountBlockPrefix + account address hash + blockID => account block
129
+ StateHistoryStorageBlockPrefix = []byte ("mbs" ) // StateHistoryStorageBlockPrefix + account address hash + storage slot hash + blockID => slot block
130
130
131
131
// VerklePrefix is the database prefix for Verkle trie data, which includes:
132
132
// (a) Trie nodes
Original file line number Diff line number Diff line change @@ -73,8 +73,8 @@ func storeIndexMetadata(db ethdb.KeyValueWriter, last uint64) {
73
73
// batchIndexer is a structure designed to perform batch indexing or unindexing
74
74
// of state histories atomically.
75
75
type batchIndexer struct {
76
- accounts map [common.Hash ][]uint64 // History ID list, Keyed by account address
77
- storages map [common.Hash ]map [common.Hash ][]uint64 // History ID list, Keyed by account address and the hash of raw storage key
76
+ accounts map [common.Hash ][]uint64 // History ID list, Keyed by the hash of account address
77
+ storages map [common.Hash ]map [common.Hash ][]uint64 // History ID list, Keyed by the hash of account address and the hash of raw storage key
78
78
counter int // The counter of processed states
79
79
delete bool // Index or unindex mode
80
80
lastID uint64 // The ID of latest processed history
You can’t perform that action at this time.
0 commit comments