diff --git a/core/state/candidates/candidates.go b/core/state/candidates/candidates.go index bba145c73..a1e41cb70 100644 --- a/core/state/candidates/candidates.go +++ b/core/state/candidates/candidates.go @@ -788,12 +788,12 @@ func (c *Candidates) Punish(height uint64, address types.TmAddress) *big.Int { c.bus.Coins().SubCoinReserve(coin.ID, ret) c.bus.App().AddTotalSlashed(ret) - c.bus.Checker().AddCoin(stake.Coin, big.NewInt(0).Neg(ret)) } else { c.bus.App().AddTotalSlashed(slashed) - c.bus.Checker().AddCoin(stake.Coin, big.NewInt(0).Neg(slashed)) } + c.bus.Checker().AddCoin(stake.Coin, big.NewInt(0).Neg(slashed)) + c.bus.Events().AddEvent(uint32(height), &eventsdb.SlashEvent{ Address: stake.Owner, Amount: slashed.String(),