Skip to content

Conversation

@bsuieric
Copy link
Contributor

@bsuieric bsuieric commented May 6, 2021

Description

A miner should no longer be able to burn part of its reward that would be sent to the treasury. Change proposal ECIP 1098.

Proposed Solution

Code responsible with burning the rewards is removed.
Miner opting out of sending the rewards to treasury is not possible anymore.
Added block header validation that check treasuryOptOut for invalid blocks

Important Changes Introduced

Added block header validation that check treasuryOptOut for invalid blocks

Testing

added unit tests, sync with sagano

@bsuieric bsuieric force-pushed the feature/ETCM-814-no-rewards-burned branch 2 times, most recently from 5127a4f to 439a7a3 Compare May 6, 2021 09:30
@dzajkowski
Copy link
Contributor

looks like the fast sync validator is covered (src/main/scala/io/iohk/ethereum/consensus/validators/BlockHeaderValidator.scala) but regular sync seems to be missed

@dzajkowski dzajkowski force-pushed the feature/ETCM-814-no-rewards-burned branch 3 times, most recently from ea4c4d9 to 54a4f63 Compare May 13, 2021 17:10
@dzajkowski dzajkowski changed the title don't burn part of the rewards that would go to treasury [ETCM-814] Don't burn part of the rewards that would go to treasury May 13, 2021
@leo-bogastry
Copy link
Contributor

👍

@dzajkowski dzajkowski force-pushed the feature/ETCM-814-no-rewards-burned branch from 54a4f63 to 00d7c10 Compare May 14, 2021 11:20
@dzajkowski dzajkowski force-pushed the feature/ETCM-814-no-rewards-burned branch from 00d7c10 to 43a58f2 Compare May 19, 2021 13:54
@dzajkowski dzajkowski merged commit 5f2acaa into develop May 19, 2021
@dzajkowski dzajkowski deleted the feature/ETCM-814-no-rewards-burned branch May 19, 2021 14:51
@dzajkowski dzajkowski mentioned this pull request May 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants