Skip to content

Commit

Permalink
ethash: no block reward in catalyst mode (ethereum#22697)
Browse files Browse the repository at this point in the history
  • Loading branch information
gballet authored Apr 20, 2021
1 parent d6ffa14 commit d7bfb97
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions consensus/ethash/consensus.go
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,10 @@ var (
// reward. The total reward consists of the static block reward and rewards for
// included uncles. The coinbase of each uncle block is also rewarded.
func accumulateRewards(config *params.ChainConfig, state *state.StateDB, header *types.Header, uncles []*types.Header) {
// Skip block reward in catalyst mode
if config.IsCatalyst(header.Number) {
return
}
// Select the correct block reward based on chain progression
blockReward := FrontierBlockReward
if config.IsByzantium(header.Number) {
Expand Down

0 comments on commit d7bfb97

Please sign in to comment.