Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/onflow/atree into supun/rev…
Browse files Browse the repository at this point in the history
…ert-287
  • Loading branch information
SupunS committed Mar 2, 2023
2 parents 3c7c476 + 82ce4cc commit f2d7eb9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -941,11 +941,11 @@ func (s *PersistentSlabStorage) DeltasSizeWithoutTempAddresses() uint64 {
size := uint64(0)
for k, slab := range s.deltas {
// Exclude slabs that are not owned by accounts.
if k.Address != AddressUndefined {
if slab != nil {
size += uint64(slab.ByteSize())
}
if k.Address == AddressUndefined || slab == nil {
continue
}

size += uint64(slab.ByteSize())
}
return size
}

0 comments on commit f2d7eb9

Please sign in to comment.