Skip to content

Commit

Permalink
Merge pull request #36 from erbieio/feat_newproject2
Browse files Browse the repository at this point in the history
perf: remove the code not reward cancel validator
  • Loading branch information
erbielab committed May 31, 2024
2 parents c268f5e + c5951ae commit 3662fa3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions consensus/istanbul/ibft/engine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3662fa3

Please sign in to comment.