We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3da037b commit d9957d0Copy full SHA for d9957d0
core/state/snapshot/snapshot.go
@@ -565,12 +565,13 @@ func diffToDisk(bottom *diffLayer) *diskLayer {
565
continue
566
}
567
568
+ oldAccount, err := base.account(hash, true)
569
+
570
// Delete the account snapshot
571
rawdb.DeleteAccountSnapshot(batch, hash)
572
base.cache.Set(hash[:], nil)
573
574
// Try to check if there's any associated storage to delete from the snapshot
- oldAccount, err := base.account(hash, true)
575
if err != nil {
576
log.Warn("Failed to get destructed account from snapshot", "err", err)
577
// Fall through to deleting storage in case this account has any
0 commit comments