mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-14 20:16:36 +00:00
core/rawdb, triedb/pathdb: fix two inaccurate comments (#32130)
This commit is contained in:
parent
fe7a77a6c2
commit
62a17fdb25
2 changed files with 4 additions and 4 deletions
|
|
@ -125,8 +125,8 @@ var (
|
||||||
StateHistoryIndexPrefix = []byte("m") // The global prefix of state history index data
|
StateHistoryIndexPrefix = []byte("m") // The global prefix of state history index data
|
||||||
StateHistoryAccountMetadataPrefix = []byte("ma") // StateHistoryAccountMetadataPrefix + account address hash => account metadata
|
StateHistoryAccountMetadataPrefix = []byte("ma") // StateHistoryAccountMetadataPrefix + account address hash => account metadata
|
||||||
StateHistoryStorageMetadataPrefix = []byte("ms") // StateHistoryStorageMetadataPrefix + account address hash + storage slot hash => slot metadata
|
StateHistoryStorageMetadataPrefix = []byte("ms") // StateHistoryStorageMetadataPrefix + account address hash + storage slot hash => slot metadata
|
||||||
StateHistoryAccountBlockPrefix = []byte("mba") // StateHistoryAccountBlockPrefix + account address hash + block_number => account block
|
StateHistoryAccountBlockPrefix = []byte("mba") // StateHistoryAccountBlockPrefix + account address hash + blockID => account block
|
||||||
StateHistoryStorageBlockPrefix = []byte("mbs") // StateHistoryStorageBlockPrefix + account address hash + storage slot hash + block_number => slot block
|
StateHistoryStorageBlockPrefix = []byte("mbs") // StateHistoryStorageBlockPrefix + account address hash + storage slot hash + blockID => slot block
|
||||||
|
|
||||||
// VerklePrefix is the database prefix for Verkle trie data, which includes:
|
// VerklePrefix is the database prefix for Verkle trie data, which includes:
|
||||||
// (a) Trie nodes
|
// (a) Trie nodes
|
||||||
|
|
|
||||||
|
|
@ -73,8 +73,8 @@ func storeIndexMetadata(db ethdb.KeyValueWriter, last uint64) {
|
||||||
// batchIndexer is a structure designed to perform batch indexing or unindexing
|
// batchIndexer is a structure designed to perform batch indexing or unindexing
|
||||||
// of state histories atomically.
|
// of state histories atomically.
|
||||||
type batchIndexer struct {
|
type batchIndexer struct {
|
||||||
accounts map[common.Hash][]uint64 // History ID list, Keyed by account address
|
accounts map[common.Hash][]uint64 // History ID list, Keyed by the hash of account address
|
||||||
storages map[common.Hash]map[common.Hash][]uint64 // History ID list, Keyed by account address and the hash of raw storage key
|
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
|
||||||
counter int // The counter of processed states
|
counter int // The counter of processed states
|
||||||
delete bool // Index or unindex mode
|
delete bool // Index or unindex mode
|
||||||
lastID uint64 // The ID of latest processed history
|
lastID uint64 // The ID of latest processed history
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue