Skip to content

Commit

Permalink
Fix checker
Browse files Browse the repository at this point in the history
  • Loading branch information
danil-lashin committed Dec 11, 2020
1 parent cac664b commit 193c5d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/state/candidates/candidates.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 193c5d7

Please sign in to comment.