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

Return proposer reward from ProcessSyncAggregate #12047

Merged
merged 3 commits into from
Feb 27, 2023
Merged

Conversation

rkapka
Copy link
Contributor

@rkapka rkapka commented Feb 24, 2023

What type of PR is this?

Feature

What does this PR do? Why is it needed?

ProcessSyncAggregate internally increases the proposer's balance with their reward for including sync committee attestations. We return the reward so that it can be used by calling code.

Which issues(s) does this PR fix?

Part of #11952

Other notes for review

Extracted from #12020

@rkapka rkapka added the Ready For Review A pull request ready for code review label Feb 24, 2023
@rkapka rkapka requested a review from a team as a code owner February 24, 2023 15:51
}
return s, votedKeys, err
return s, votedKeys, proposerReward, err
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be earnedProposerReward ?

@rkapka rkapka merged commit e92b546 into develop Feb 27, 2023
@delete-merged-branch delete-merged-branch bot deleted the block-rewards-core branch February 27, 2023 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants