I found below variables in geth file 'consensus/ethash/consensus.go'

      var (
         FrontierBlockReward       = big.NewInt(5e+18) //.. 
         ByzantiumBlockReward      = big.NewInt(3e+18) //..

I have a question about it.

If I'm a miner and I modify BlockReward(e.g. 10 ether) as I want and rebuild the code and participate in main-net, when I succeed mining, can I receive modified-BlockReward?

Otherwise, how to handle this problem? and is there source code in geth to handle it?

Very thank you for your favor


A miner can modify their code to start producing blocks that give them a higher block reward: no one can prevent you from modifying and building code that you run. But, other miners will ignore the blocks you create because they know that your block is not following the consensus rules. Yes, nodes have code that handle ignoring blocks and transactions that do not follow the consensus rules.

  • greatly thank you for your answer!! :) could you give location info of that consensus code in geth? – brand13 Jan 4 '19 at 1:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.