-
Notifications
You must be signed in to change notification settings - Fork 891
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
added genesis config option ecip1017EraRounds for Ethereum Classic chains #1329
Conversation
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>
config/src/main/java/org/hyperledger/besu/config/GenesisConfigOptions.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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.
ethereum/core/src/main/java/org/hyperledger/besu/ethereum/mainnet/ClassicBlockProcessor.java
Outdated
Show resolved
Hide resolved
ethereum/core/src/main/java/org/hyperledger/besu/ethereum/mainnet/ClassicBlockProcessor.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Edward Mack <ed@edwardmack.com>
…/besu into ed/mordor_era_handling
Thanks for squeezing this in, guys. Just spotted this typo while looking at the diffs - DEFALUT_ERA_LENGTH Best wishes! |
@bobsummerwill thanks for catching the typo, fixed in PR #1343 |
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