From 40cb2543c2404ad80414d52c8f7779049ad4cce1 Mon Sep 17 00:00:00 2001 From: jsvisa Date: Tue, 1 Jul 2025 23:57:37 +0800 Subject: [PATCH] triedb: hash as key, not address Signed-off-by: jsvisa --- triedb/pathdb/history_indexer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/triedb/pathdb/history_indexer.go b/triedb/pathdb/history_indexer.go index 90816e6ef6..42103fab32 100644 --- a/triedb/pathdb/history_indexer.go +++ b/triedb/pathdb/history_indexer.go @@ -73,8 +73,8 @@ func storeIndexMetadata(db ethdb.KeyValueWriter, last uint64) { // batchIndexer is a structure designed to perform batch indexing or unindexing // of state histories atomically. type batchIndexer struct { - accounts map[common.Hash][]uint64 // History ID list, Keyed by account address - storages map[common.Hash]map[common.Hash][]uint64 // History ID list, Keyed by account address and the hash of raw storage key + 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 the hash of account address and the hash of raw storage key counter int // The counter of processed states delete bool // Index or unindex mode lastID uint64 // The ID of latest processed history