mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-01 01:23:46 +00:00
Fixed BalanceChange for suicide withdraw not being recorded
This commit is contained in:
parent
2b4614152b
commit
ed4349ca90
1 changed files with 4 additions and 0 deletions
|
|
@ -304,6 +304,10 @@ func (f *Firehose) CaptureEnter(typ vm.OpCode, from common.Address, to common.Ad
|
|||
f.ensureInCall()
|
||||
f.callStack.Peek().Suicide = true
|
||||
|
||||
if value.Sign() != 0 {
|
||||
f.OnBalanceChange(from, value, common.Big0, state.BalanceChangeSuicideWithdraw)
|
||||
}
|
||||
|
||||
// The next CaptureExit must be ignored, this variable will make the next CaptureExit to be ignored
|
||||
f.latestCallStartSuicided = true
|
||||
return
|
||||
|
|
|
|||
Loading…
Reference in a new issue