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 and atif-konasl committed Oct 15, 2021
1 parent 3e50477 commit 69d911c
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 69d911c

Please sign in to comment.