address store as addrhash

Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
jsvisa 2025-06-18 07:06:55 +00:00
parent 53a5be12e6
commit b8d6e5e203

View file

@ -223,11 +223,11 @@ func (sc *StateUpdate) IntoChangeset() *StateChangeset {
}
if len(newValue) == 0 {
accounts -= 1
accountSize -= common.AddressLength
accountSize -= common.HashLength
}
if len(oldValue) == 0 {
accounts += 1
accountSize += common.AddressLength
accountSize += common.HashLength
}
accountSize += len(newValue) - len(oldValue)
}