From 45a9ef00e9ca52b62fa25e0e3ba68e1b2c988660 Mon Sep 17 00:00:00 2001 From: maskpp Date: Thu, 13 Jun 2024 10:08:54 +0800 Subject: [PATCH] revert mistake change --- triedb/pathdb/history.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/triedb/pathdb/history.go b/triedb/pathdb/history.go index 72b72571e0..60ce3dc2bc 100644 --- a/triedb/pathdb/history.go +++ b/triedb/pathdb/history.go @@ -383,13 +383,13 @@ func (r *decoder) readAccount(pos int) (accountIndex, []byte, error) { // readStorage parses the storage slots from the byte stream with specified account. func (r *decoder) readStorage(accIndex accountIndex) ([]common.Hash, map[common.Hash][]byte, error) { var ( + last common.Hash count = int(accIndex.storageSlots) list = make([]common.Hash, 0, count) storage = make(map[common.Hash][]byte, count) ) for j := 0; j < count; j++ { var ( - last common.Hash index slotIndex start = (accIndex.storageOffset + uint32(j)) * uint32(slotIndexSize) end = (accIndex.storageOffset + uint32(j+1)) * uint32(slotIndexSize)