-
Notifications
You must be signed in to change notification settings - Fork 92
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
[Consensus] Update main chain POW end to supply end #989
Conversation
As this will affect consensus sometime in November this year, the release this is included in will be a mandatory release.
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.
utACK f416446
utACK f416446 |
As this will affect consensus sometime in November this year, the release this is included in will be a mandatory release.
Is there any specific test I can do to confirm the extension of PoW to the end of supply? |
The only thing I can think of would be to change this value for regtest to a much lower height and verify that PoW stops at that height, thus validating the behavior of the parameter. |
The change for the main chain should apply to testnet, devnet and regtest also.
Aside from my adding the extension to all chains, I'm not really seeing where this value is compared in the code for the lower number to have had any effect whatsoever. Maybe it was never going to happen? |
Ah, found it in After chainparams.h passes the value of nLastPOWBlock to LAST_POW_BLOCK it then uses that below.
|
Per the team, POW should be extended throughout the end of the supply.
As a change to the chainparams, this will be a mandatory change--versions without this update will reject POW blocks starting in November 2022, causing a fork. It may be prudent to add a protocol version bump as well to enforce separately.