open-ethereum-pool icon indicating copy to clipboard operation
open-ethereum-pool copied to clipboard

Block reward correction

Open innovative-sol opened this issue 3 years ago • 3 comments

Hi,

Can you please update the block reward?

The following must be added to /payouts/unlocker.go

const constantinopleHardForkHeight = 7080000 var constantinopleReward = math.MustParseBig256("2000000000000000000")

The function getConstReward() from /payouts/unlocker.go needs to be updated too:

func getConstReward(height int64) *big.Int {
	if height >= constantinopleHardForkHeight {
		return new(big.Int).Set(constantinopleReward)
	}
	if height >= byzantiumHardForkHeight {
		return new(big.Int).Set(byzantiumReward)
	}
	return new(big.Int).Set(homesteadReward)
}

Regards,

Daniel

innovative-sol avatar Jun 30 '21 07:06 innovative-sol

I think this PR covers this: https://github.com/sammy007/open-ethereum-pool/pull/432

Sammy does not maintain this repo anymore, so you might want to fork it and implement in your personal repo

mikeyb avatar Jun 30 '21 17:06 mikeyb

I think this PR covers this: #432

Sammy does not maintain this repo anymore, so you might want to fork it and implement in your personal repo

Hello Mikeyb, I have been trying to contact you for a while now... Is there any we could talk? Here's my email address, please, this is very important and I think you would love to join my project. [email protected]

gabrielcmoura1 avatar Jul 05 '21 20:07 gabrielcmoura1

Please tell me the changes in the code for the reward, after the hard fork of London.

baginail avatar Sep 14 '21 15:09 baginail