Update snapshot.go

This commit is contained in:
Martin HS 2024-11-21 13:02:57 +01:00 committed by GitHub
parent 93f628fc86
commit 9e3eb14570
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -220,6 +220,7 @@ func New(config Config, diskdb ethdb.KeyValueStore, triedb *triedb.Database, roo
// Existing snapshot loaded, seed all the layers // Existing snapshot loaded, seed all the layers
for head != nil { for head != nil {
snap.layers[head.Root()] = head snap.layers[head.Root()] = head
head = head.Parent()
} }
return snap, nil return snap, nil
} }