Forráskód Böngészése

ethash: no block reward in catalyst mode (#22697)

Guillaume Ballet 4 éve
szülő
commit
d7bfb978ba
1 módosított fájl, 4 hozzáadás és 0 törlés
  1. 4 0
      consensus/ethash/consensus.go

+ 4 - 0
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) {