mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-20 11:46:44 +00:00
core/state: count code update with 7702 clear
This commit is contained in:
parent
cc6de619f0
commit
e6982a76da
1 changed files with 1 additions and 1 deletions
|
|
@ -948,7 +948,7 @@ func (s *StateDB) IntermediateRoot(deleteEmptyObjects bool) common.Hash {
|
||||||
s.AccountUpdated += 1
|
s.AccountUpdated += 1
|
||||||
|
|
||||||
// Count code writes post-Finalise so reverted CREATEs are excluded.
|
// Count code writes post-Finalise so reverted CREATEs are excluded.
|
||||||
if obj.dirtyCode && len(obj.code) > 0 {
|
if obj.dirtyCode {
|
||||||
s.CodeUpdated += 1
|
s.CodeUpdated += 1
|
||||||
s.CodeUpdateBytes += len(obj.code)
|
s.CodeUpdateBytes += len(obj.code)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue