Skip to content

Commit c840e7f

Browse files
committed
fix diffhash mismatch issue
1 parent 734d17f commit c840e7f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

core/state/statedb.go

+3-5
Original file line numberDiff line numberDiff line change
@@ -1517,11 +1517,9 @@ func (s *StateDB) Commit(failPostCommitFunc func(), postCommitFuncs ...func() er
15171517
// - head layer is paired with HEAD state
15181518
// - head-1 layer is paired with HEAD-1 state
15191519
// - head-(n-1) layer(bottom-most diff layer) is paired with HEAD-(n-1)state
1520-
go func() {
1521-
if err := s.snaps.Cap(s.expectedRoot, s.snaps.CapLimit()); err != nil {
1522-
log.Warn("Failed to cap snapshot tree", "root", s.expectedRoot, "layers", s.snaps.CapLimit(), "err", err)
1523-
}
1524-
}()
1520+
if err := s.snaps.Cap(s.expectedRoot, s.snaps.CapLimit()); err != nil {
1521+
log.Warn("Failed to cap snapshot tree", "root", s.expectedRoot, "layers", s.snaps.CapLimit(), "err", err)
1522+
}
15251523
}
15261524
}
15271525
return nil

0 commit comments

Comments
 (0)