From c5951aec50a4154f95bf4a0b5746665ec1a0155d Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 31 May 2024 13:49:36 +0800 Subject: [PATCH] perf: remove the code not reward cancel validator --- consensus/istanbul/ibft/engine/engine.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/consensus/istanbul/ibft/engine/engine.go b/consensus/istanbul/ibft/engine/engine.go index f8449b2..2ca9484 100644 --- a/consensus/istanbul/ibft/engine/engine.go +++ b/consensus/istanbul/ibft/engine/engine.go @@ -592,11 +592,11 @@ func (e *Engine) Prepare(chain consensus.ChainHeaderReader, header *types.Header //The current block issues a reward for the previous block, //but if the participant in the previous block consensus sends a validator to cancel the transaction //and package it in the previous block, the current block does not send him a reward - for index, a := range validatorAddr { - if !validatorList.Exist(a) { - validatorAddr = append(validatorAddr[:index], validatorAddr[index+1:]...) - } - } + //for index, a := range validatorAddr { + // if !validatorList.Exist(a) { + // validatorAddr = append(validatorAddr[:index], validatorAddr[index+1:]...) + // } + //} //If the reward address is on a proxy account, it will be restored to a pledge account for index, a := range validatorAddr {