mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-19 14:34:17 +00:00
use misbehavior instead of misbehaviors to avoid breaking the api
This commit is contained in:
@@ -196,7 +196,7 @@ func (app *Application) FinalizeBlock(_ context.Context, req *types.RequestFinal
|
||||
app.stagedTxs = make([][]byte, 0)
|
||||
|
||||
// Punish validators who committed equivocation.
|
||||
for _, ev := range req.Misbehaviors {
|
||||
for _, ev := range req.Misbehavior {
|
||||
if ev.Type == types.MisbehaviorType_DUPLICATE_VOTE {
|
||||
addr := string(ev.Validator.Address)
|
||||
if pubKey, ok := app.valAddrToPubKeyMap[addr]; ok {
|
||||
|
||||
Reference in New Issue
Block a user