[Consensus] Update main chain POW end to supply end#989
[Consensus] Update main chain POW end to supply end#989seanPhill merged 4 commits intoVeil-Project:masterfrom
Conversation
As this will affect consensus sometime in November this year, the release this is included in will be a mandatory release.
|
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.