open-ethereum-pool
open-ethereum-pool copied to clipboard
Block reward correction
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
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
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]
Please tell me the changes in the code for the reward, after the hard fork of London.