core/state: count code update with 7702 clear

This commit is contained in:
Gary Rong 2026-01-28 16:11:45 +08:00
parent cc6de619f0
commit e6982a76da

View file

@ -948,7 +948,7 @@ func (s *StateDB) IntermediateRoot(deleteEmptyObjects bool) common.Hash {
s.AccountUpdated += 1
// Count code writes post-Finalise so reverted CREATEs are excluded.
if obj.dirtyCode && len(obj.code) > 0 {
if obj.dirtyCode {
s.CodeUpdated += 1
s.CodeUpdateBytes += len(obj.code)
}