mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 06:06:44 +00:00
minor
This commit is contained in:
parent
e57ca8af41
commit
9c2336ce43
1 changed files with 6 additions and 1 deletions
|
|
@ -184,8 +184,13 @@ func (t *prestateTracer) OnTxEnd(receipt *types.Receipt, err error) {
|
||||||
if t.config.DiffMode {
|
if t.config.DiffMode {
|
||||||
t.processDiffState()
|
t.processDiffState()
|
||||||
}
|
}
|
||||||
|
// Remove accounts that were empty prior to execution. Unless
|
||||||
|
// user requested to include empty accounts.
|
||||||
|
if t.config.IncludeEmpty {
|
||||||
|
return
|
||||||
|
}
|
||||||
for addr, s := range t.pre {
|
for addr, s := range t.pre {
|
||||||
if s.empty && !t.config.IncludeEmpty {
|
if s.empty {
|
||||||
delete(t.pre, addr)
|
delete(t.pre, addr)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue