Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: remove the code not reward cancel validator #36

Merged
merged 1 commit into from
May 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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