File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -560,14 +560,17 @@ func diffToDisk(bottom *diffLayer) *diskLayer {
560
560
561
561
// Destroy all the destructed accounts from the database
562
562
for hash := range bottom .destructSet {
563
- oldAccount , err := base .account (hash , true )
564
563
// Skip any account not covered yet by the snapshot
565
- if errors . Is ( err , ErrNotCoveredYet ) {
564
+ if base . genMarker != nil && bytes . Compare ( hash [:], base . genMarker ) > 0 {
566
565
continue
567
566
}
567
+
568
+ // Delete the account snapshot
568
569
rawdb .DeleteAccountSnapshot (batch , hash )
569
570
base .cache .Set (hash [:], nil )
570
571
572
+ // Try to check if there's any associated storage to delete from the snapshot
573
+ oldAccount , err := base .account (hash , true )
571
574
if err != nil {
572
575
log .Warn ("Failed to get destructed account from snapshot" , "err" , err )
573
576
// Fall through to deleting storage in case this account has any
You can’t perform that action at this time.
0 commit comments