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

added genesis config option ecip1017EraRounds for Ethereum Classic chains #1329

Merged
merged 5 commits into from
Aug 25, 2020

Conversation

edwardmack
Copy link
Contributor

@edwardmack edwardmack commented Aug 25, 2020

PR description

Ethereum Classic ECIP-1017 Monetary Policy and Final Modification to the Ethereum Classic Emission Schedule introduces the concept of an "Era" which is defined as the number of blocks containing a given production rate. The Ethereum Classic Network uses a value of 5,000,000 blocks for an Era.

This PR introduces a genesis config option named ecip1017EraRounds to define the number of Rounds in an Era. This config value is used in the mordor.json config since the Mordor testnet uses a 2,000,000 block Era.

If ecip1017EraRounds is not configured, the node will default to 5,000,000 blocks per Era.

Signed-off-by: Edward Mack ed@edwardmack.com

Fixed Issue(s)

Fixes issue where node would not sync past 2,000,000 blocks on Mordor testnet.

Changelog

to define the number of Rounds in an Era for Ethereum Classic Emission
Schedule.

Signed-off-by: Edward Mack <ed@edwardmack.com>
Signed-off-by: Edward Mack <ed@edwardmack.com>
@edwardmack edwardmack requested a review from shemnon August 25, 2020 17:20
@edwardmack edwardmack added the ETC Ethereum Classic label Aug 25, 2020
Copy link
Contributor

@shemnon shemnon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some doc and style suggestions.

Please merge this by tonight so we can do the release tomorrow.

Validated with a local full sync of Mordor.

@edwardmack edwardmack merged commit 6684a5b into hyperledger:master Aug 25, 2020
@edwardmack edwardmack deleted the ed/mordor_era_handling branch August 25, 2020 21:23
@bobsummerwill
Copy link

Thanks for squeezing this in, guys.

Just spotted this typo while looking at the diffs - DEFALUT_ERA_LENGTH

Best wishes!

@edwardmack edwardmack mentioned this pull request Aug 27, 2020
1 task
@edwardmack
Copy link
Contributor Author

@bobsummerwill thanks for catching the typo, fixed in PR #1343

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

Successfully merging this pull request may close these issues.

3 participants