Skip to content

Commit

Permalink
fix diffhash mismatch issue
Browse files Browse the repository at this point in the history
  • Loading branch information
j75689 committed Apr 22, 2022
1 parent 734d17f commit c840e7f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions core/state/statedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -1517,11 +1517,9 @@ func (s *StateDB) Commit(failPostCommitFunc func(), postCommitFuncs ...func() er
// - head layer is paired with HEAD state
// - head-1 layer is paired with HEAD-1 state
// - head-(n-1) layer(bottom-most diff layer) is paired with HEAD-(n-1)state
go func() {
if err := s.snaps.Cap(s.expectedRoot, s.snaps.CapLimit()); err != nil {
log.Warn("Failed to cap snapshot tree", "root", s.expectedRoot, "layers", s.snaps.CapLimit(), "err", err)
}
}()
if err := s.snaps.Cap(s.expectedRoot, s.snaps.CapLimit()); err != nil {
log.Warn("Failed to cap snapshot tree", "root", s.expectedRoot, "layers", s.snaps.CapLimit(), "err", err)
}
}
}
return nil
Expand Down

0 comments on commit c840e7f

Please sign in to comment.