Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block reward correction #479

Open
innovative-sol opened this issue Jun 30, 2021 · 3 comments
Open

Block reward correction #479

innovative-sol opened this issue Jun 30, 2021 · 3 comments

Comments

@innovative-sol
Copy link

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

@mikeyb
Copy link

mikeyb commented Jun 30, 2021

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

@gabrielcmoura1
Copy link

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. gabrielcmoura1@gmail.com

@baginail
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants