mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
revert mistake change
This commit is contained in:
parent
6c4b8eb9fd
commit
45a9ef00e9
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
// 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) {
|
func (r *decoder) readStorage(accIndex accountIndex) ([]common.Hash, map[common.Hash][]byte, error) {
|
||||||
var (
|
var (
|
||||||
|
last common.Hash
|
||||||
count = int(accIndex.storageSlots)
|
count = int(accIndex.storageSlots)
|
||||||
list = make([]common.Hash, 0, count)
|
list = make([]common.Hash, 0, count)
|
||||||
storage = make(map[common.Hash][]byte, count)
|
storage = make(map[common.Hash][]byte, count)
|
||||||
)
|
)
|
||||||
for j := 0; j < count; j++ {
|
for j := 0; j < count; j++ {
|
||||||
var (
|
var (
|
||||||
last common.Hash
|
|
||||||
index slotIndex
|
index slotIndex
|
||||||
start = (accIndex.storageOffset + uint32(j)) * uint32(slotIndexSize)
|
start = (accIndex.storageOffset + uint32(j)) * uint32(slotIndexSize)
|
||||||
end = (accIndex.storageOffset + uint32(j+1)) * uint32(slotIndexSize)
|
end = (accIndex.storageOffset + uint32(j+1)) * uint32(slotIndexSize)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue