From d7bfb978ba9a96f638890f1abb6e5bff760832fc Mon Sep 17 00:00:00 2001
From: Guillaume Ballet <3272758+gballet@users.noreply.github.com>
Date: Tue, 20 Apr 2021 10:29:36 +0200
Subject: [PATCH] ethash: no block reward in catalyst mode (#22697)

---
 consensus/ethash/consensus.go | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/consensus/ethash/consensus.go b/consensus/ethash/consensus.go
index e23bd824a..c405d07fc 100644
--- a/consensus/ethash/consensus.go
+++ b/consensus/ethash/consensus.go
@@ -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) {
-- 
GitLab